Are IBActions running in the main queue?

I tried to find this, but seemed to be stuck on this issue. All user interface guides say that all UI stuff should be in the main theme of the GCD, but no one talks about the internal implementation of IBActions.

So, are IBActions running in the main GCD stream or not?

+8
user-interface ios ibaction grand-central-dispatch
source share
1 answer

Yes, and you can test it yourself using NSLog(@"is main thread? %d", [NSThread isMainThread]); . You can also use the debugger and the left view to find out which thread was executed by your code.

+7
source share

All Articles