2012年3月25日 星期日

判斷目前的thread是否為main thread

+ (BOOL)isMainThread NS_AVAILABLE(10_5, 2_0); // reports whether current thread is main
BOOL result = [NSThread isMainThread];
view raw gistfile1.m hosted with ❤ by GitHub

沒有留言:

張貼留言