IPhone: How to determine if a stream is the main stream?

How to determine if the current thread inside a method is a main thread or just a thread that is asynchronous and created? Is the identifier to me?

+53
objective-c iphone
Aug 30 '11 at 0:18
source share
1 answer

Example: [NSThread isMainThread]

+115
Aug 30 '11 at 0:24
source share



All Articles