####Accessing Variables in Block Objects
//访问block对象
1 | typedef void (^BlockWithNoParams)(void); |
####Constructing Block Objects
//构建block对象
1 | //定义 返回字符串,传入NSUInteger |
####Constructing Your Own Dispatch Queues with GCD
//在线程里构建调度队列
1 | /* 1 */ |
####Creating Concurrency with Threads
//并发线程
1 | - (void) autoreleaseThread:(id)paramSender{ |
####Creating Timers
//NSTimer
1 | @interface AppDelegate () |
####Exiting Threads and Timers
//NSThread
1 | @property (nonatomic, strong) NSThread *myThread; |
####Grouping Tasks Together with GCD
//GCD
1 | void reloadAllComponents(void *context); |