2015年9月5日

多线程 block中self 强引用问题

摘要: #import "ViewController.h"@interface ViewController ()// 定义一个全局的队列属性.方便在任何方法中都可以使用这个Queue@property (nonatomic,strong) NSOperationQueue *queue;// UI 控件... 阅读全文

posted @ 2015-09-05 23:37 li杨 阅读(912) 评论(0) 推荐(0)

多线程NSOperation使用方法

摘要: /*------------------------------ NSOperation使用 -----------------------------------*/重点:操作 NSOperation 和操作队列 NSOperationQueue!{ 1.NSOperation(操作)简介: ... 阅读全文

posted @ 2015-09-05 00:27 li杨 阅读(190) 评论(0) 推荐(0)

多线程GCD用法

摘要: /*------------------------------ GCD使用 1.队列和任务------------------------------------------*/重点:1."串行队列"? "并发队列"? 2.block?{ 1.GCD(Grand Central Dispatch... 阅读全文

posted @ 2015-09-05 00:20 li杨 阅读(114) 评论(0) 推荐(0)

多线程NSThread

摘要: /*--------------------------------------- 卡住主线程------------------------------------------*/重点:1.线程进程区别! 2.串行执行!{ 1. 问题演示 : 为什么在执行打印输出(执行耗时代码)的时候, UI... 阅读全文

posted @ 2015-09-05 00:10 li杨 阅读(130) 评论(0) 推荐(0)

导航