摘要: //创建一个队列 NSOperationQueue *operation=[[NSOperationQueue alloc]init]; //把任务放在NSBlockOperation里面 NSBlockOperation *myOperation=[NSBlockOpe... 阅读全文
posted @ 2015-03-29 21:55 曹县三胖暴打大猩猩 阅读(268) 评论(0) 推荐(0) 编辑
摘要: #import @class TTOperation;@protocol TTOperationDelegate -(void)operationComplete:(NSData *)data;@end@interface TTOperation : NSOperation@property(non... 阅读全文
posted @ 2015-03-29 21:51 曹县三胖暴打大猩猩 阅读(197) 评论(0) 推荐(0) 编辑
摘要: //创建一个队列 NSOperationQueue *operation=[[NSOperationQueue alloc]init]; //把任务放在NSBlockOperation里面 NSBlockOperation *myOperation=[NSBlockOperati... 阅读全文
posted @ 2015-03-29 21:34 曹县三胖暴打大猩猩 阅读(147) 评论(0) 推荐(0) 编辑
摘要: #define KURL1 @"http://img0.imgtn.bdimg.com/it/u=79920747,2237302485&fm=90&gp=0.jpg"#define KURL2 @"http://img5.imgtn.bdimg.com/it/u=2983485216,136114... 阅读全文
posted @ 2015-03-29 21:12 曹县三胖暴打大猩猩 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 1:dispatch_get_global_queue 后台执行队列2:dispatch_get_main_queue 主队列3:dispatch_queue_create("test", DISPATCH_QUEUE_CONCURRENT) 自定义队列:其中第二个参数为DISPATCH_QUE... 阅读全文
posted @ 2015-03-29 18:24 曹县三胖暴打大猩猩 阅读(177) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UILabel *remindLabel;@end@implementation ViewController- (v... 阅读全文
posted @ 2015-03-29 17:36 曹县三胖暴打大猩猩 阅读(212) 评论(0) 推荐(0) 编辑