开发者

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

开发者 https://www.devze.com 2023-03-31 09:52 出处:网络
This question already has answers here: Check whether or not the current thread is the main thread (13 answers)
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

精彩评论

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