Detect UI actions outside of main thread
问题 Note: This question is related to Warn on calls to UIKit from background threads but does not give an answer on two of the approaches below. I have a problem where the app screen blinks rapidly. I already had that problem in the past and it is due to updating the UI elements outside the main thread. Therefore I've put the following code in many places: assertMainThread(); which is: #define assertMainThread() NSAssert([NSThread isMainThread],@"Method called using a thread other than main!") Of