摘要: 由于系统默认加载main.storyboard,所以当我们添加了其他的storyboard之后想要先加载到我们自定的storyboard则需在appdelegate里面进行相应的设置 阅读全文
posted @ 2016-03-25 21:23 恒远也 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1.创建管理器 阅读全文
posted @ 2016-03-25 21:19 恒远也 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 @end 6 7 @implementation ViewController 8 9 - (void)viewDidLoad { 10 [super viewDidLoad]; 11 // Do an... 阅读全文
posted @ 2016-03-25 21:17 恒远也 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1 #import "TableViewController.h" 2 3 @interface TableViewController () 4 5 @end 6 7 @implementation TableViewController 8 9 - (void)viewDidLoad { 10 [super viewDidLoad]; 11 ... 阅读全文
posted @ 2016-03-25 21:15 恒远也 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 @end 6 7 @implementation ViewController 8 9 - (void)viewDidLoad { 10 [super viewDidLoad]; 11 //向主线程添加... 阅读全文
posted @ 2016-03-25 21:13 恒远也 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1 //GCD单例 2 +(instancetype)share 3 { 4 //整个生命周期只创建一次 5 static GCDSingleton *object = nil; 6 static dispatch_once_t onceToken; 7 dispatch_once(&onceToken,^{ 8 object = ... 阅读全文
posted @ 2016-03-25 21:12 恒远也 阅读(239) 评论(0) 推荐(0) 编辑