dispatch_async

  
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        // in thread
        dispatch_async(dispatch_get_main_queue(), ^{
            // main thread
        });
    });

posted @ 2012-04-05 10:54  Gang.Wang  阅读(496)  评论(0编辑  收藏  举报