摘要: #define SingleH(name) +(instancetype)share##name; #if __has_feature(objc_arc) //条件满足 ARC #define SingleM(name) static id _instance;\ +(instancetype)al 阅读全文
posted @ 2016-02-20 18:49 suifenglangzi 阅读(165) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent 阅读全文
posted @ 2016-02-20 14:57 suifenglangzi 阅读(141) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h" #import "LZJPerson.h" @interface ViewController () @end @implementation ViewController - (void)touchesBegan:(NSSet<UITouch 阅读全文
posted @ 2016-02-20 11:02 suifenglangzi 阅读(112) 评论(0) 推荐(0) 编辑
摘要: //异步函数+并发队列:会开启多条线程,队列中的任务是并发执行 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); //异步函数+串行队列:会开线程,开一条线程,队列中的任务是 阅读全文
posted @ 2016-02-20 09:54 suifenglangzi 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-02-20 00:34 suifenglangzi 阅读(100) 评论(0) 推荐(0) 编辑