摘要: 1 用自带的邮件客户端,发完邮件后不会自动回到原应用 2 NSURL *url = [NSURL URLWithString:@"mailto://10010@qq.com"]; 3 [[UIApplication sharedApplication] openURL:url]; 1 跟发短信的第2... 阅读全文
posted @ 2016-01-25 14:16 xiaocaoera 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 1 直接跳到发短信界面,但是不能指定短信内容,而且不能自动回到原应用 2 NSURL *url = [NSURL URLWithString:@"sms://10010"]; 3 [[UIApplication sharedApplication] openURL:url]; 1 如果想指定短信内容... 阅读全文
posted @ 2016-01-25 14:12 xiaocaoera 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1 最简单最直接的方式:直接跳到拨号界面2 NSURL *url = [NSURL URLWithString:@"tel://10010"];3 [[UIApplication sharedApplication] openURL:url];4 缺点5 电话打完后,不会自动回到原应用,直接停留在通... 阅读全文
posted @ 2016-01-25 14:08 xiaocaoera 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1 #import 2 3 @interface NJProductViewController : UICollectionViewController 4 // 'UICollectionView must be initialized with a non-nil layout... 阅读全文
posted @ 2016-01-24 22:53 xiaocaoera 阅读(207) 评论(0) 推荐(0) 编辑
摘要: #import @interface NJProductViewController : UICollectionViewController// 'UICollectionView must be initialized with a non-nil layout parameter'// 创建U... 阅读全文
posted @ 2016-01-24 22:29 xiaocaoera 阅读(637) 评论(0) 推荐(0) 编辑
摘要: 1 #import 2 3 @interface NJProductItem : NSObject 4 /** 5 * 图标 6 */ 7 @property (nonatomic, copy) NSString *icon; 8 /** 9 * 标题10 */11 @proper... 阅读全文
posted @ 2016-01-24 19:03 xiaocaoera 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 1 #import 2 3 @interface NJNavigationController : UINavigationController 4 5 @end 6 7 8 9 #import "NJNavigationController.h"10 11 @interface NJ... 阅读全文
posted @ 2016-01-24 18:12 xiaocaoera 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 1 #import 2 3 @interface NJTitleButton : UIButton 4 5 @end 6 7 8 #import "NJTitleButton.h" 9 10 @interface NJTitleButton ()11 @property (nonatom... 阅读全文
posted @ 2016-01-24 17:52 xiaocaoera 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1 // 3.设置导航条的主题 2 // 如果要同时设置很多UINavigationBar的样式, 可以通过设置UINavigationBar的主题的方式来设置以便简化代码 3 UINavigationBar *navBar = [UINavigationBar appea... 阅读全文
posted @ 2016-01-24 15:12 xiaocaoera 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 1 #import 2 3 @protocol NJTabBarDelegate 4 /** 5 * @param from 从哪个视图(视图索引) 6 * @param to 到哪个视图(视图索引) 7 */ 8 - (void)tabBarDidSelectBtnFrom:... 阅读全文
posted @ 2016-01-24 14:34 xiaocaoera 阅读(120) 评论(0) 推荐(0) 编辑