摘要: 1.dispatch_queue_t queue = dispatch_get_main_queue(); dispatch_sync(queue, ^{ NSLog(@"Hello?"); });死锁原因: 步骤一: block加入main thread中 步骤二:等待block执行完毕 但是... 阅读全文
posted @ 2015-06-01 17:55 magicya 阅读(424) 评论(0) 推荐(0) 编辑