`
sking777
  • 浏览: 22852 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Grand Central Dispatch 并行任务管理

阅读更多
例:
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ 
    // 耗时的操作 
    dispatch_async(dispatch_get_main_queue(), ^{ 
        // 更新界面 
    }); 
});

参考:
https://developer.apple.com/library/ios/documentation/Performance/Reference/GCD_libdispatch_Ref/Reference/reference.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics