将ios代码在后台(子线程)执行的两种简单方式

a.使用gcdasync    //切换到线程中执行             dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{                 // Do the work in background                 [[MyManager shareIn
相关文章
相关标签/搜索