Instance Property

isMainThread

A Boolean value that indicates whether the receiver is the main thread.

Declaration

@property(readonly) BOOL isMainThread;

Discussion

YES if the receiver is the main thread, otherwise NO.

See Also

Working with the Main Thread

isMainThread

Returns a Boolean value that indicates whether the current thread is the main thread.

mainThread

Returns the NSThread object representing the main thread.