Translate

2013年5月3日 星期五

GCD全称为Grand Central Dispatch dispatch_async

參考link

參考lin2


dispatch_async(dispatch_get_gloabal_queue(0, 0), ^{ //加入耗时操作 //...... dispatch_async(dispatch_get_main_queue(), ^{ //更新UI操作 //..... }); });

1 則留言:

  1. Thanks a lot for sharing this amazing knowledge with us. This site is fantastic. I always find great knowledge from it. Apple Developer Enterprise Account

    回覆刪除