摘要:
#define SingleH(name) +(instancetype)share##name; #if __has_feature(objc_arc) //条件满足 ARC #define SingleM(name) static id _instance;\ +(instancetype)al 阅读全文
摘要:
#import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent 阅读全文
摘要:
#import "ViewController.h" #import "LZJPerson.h" @interface ViewController () @end @implementation ViewController - (void)touchesBegan:(NSSet<UITouch 阅读全文
摘要:
//异步函数+并发队列:会开启多条线程,队列中的任务是并发执行 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); //异步函数+串行队列:会开线程,开一条线程,队列中的任务是 阅读全文
摘要:
阅读全文