摘要: 1-延迟执行可以安排其线程(1),主队列 dispatch_queue_t queue= dispatch_get_main_queue(); dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5.0 * NSEC_PER... 阅读全文
posted @ 2014-12-30 14:22 yangli(iOS) 阅读(167) 评论(0) 推荐(0) 编辑
摘要: /** *获取全局并发队列 */ dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); // 1.添加到异步任务队列中执行,开启新线程 dispatch_async(q... 阅读全文
posted @ 2014-12-30 14:09 yangli(iOS) 阅读(160) 评论(0) 推荐(0) 编辑