开发者

iPhone: How to determine if thread is main thread? [duplicate]

This question already has answers here: Check whether or not the current thread is the main thread (13 answers) Closed 9 years ago.

How to determine if the current thread inside a method is a main thread, or just a 开发者_运维百科thread that is asynchronous and created? Does the ID tell me?


Like this: [NSThread isMainThread]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜