![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
线程
printf程序猿
正常人
展开
-
GCD线程
定义2个imageView 6个button 前三个打印 后三个控制显示 - (IBAction)chuanxing:(UIButton *)sender { //创建队列对象 DISPATCH_QUEUE_SERIAL//串行的队列 "com.queue.serail"标识 dispatch_queue_t serailQueue = dispatch_queue_原创 2015-12-01 21:02:21 · 293 阅读 · 0 评论 -
ios线程 线程保护 卖票问题 网络加载的线程
1.创建线程的三种方式 (队列线程) 1.1block创建线程 NSBlockOperation *operation = [NSBlockOperation blockOperationWithBlock:^{ for (int i = 0; i 10; i ++) { NSLog(@"thread =原创 2015-12-01 15:12:49 · 358 阅读 · 0 评论