This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (BOOL)isMainThread NS_AVAILABLE(10_5, 2_0); // reports whether current thread is main | |
BOOL result = [NSThread isMainThread]; |
沒有留言:
張貼留言