标签:height 主线程 nbsp operation add init col queue ati
//创建队列
NSOperationQueue *queue = [[NSOperationQueue alloc]init];
//封装操作
NSBlockOperation *op3 = [NSBlockOperation blockOperationWithBlock:^{
NSLog(@"执行耗时操作"++++++++++++++++);
//回到主线程
NSOperationQueue *mainQueue = [NSOperationQueue mainQueue];
[mainQueue addOperationWithBlock:^{
NSLog(@"这是主线程。。。。。");
}];
}];
标签:height 主线程 nbsp operation add init col queue ati
原文地址:https://www.cnblogs.com/dashengios/p/10421424.html