What is the significance of WaitUntilDOne in performSelectorOnMainThread?
What is the significance of WaitUntilDOne in performSelectorOnMainThread ? IN what way the YES or NO set to WaitUntilDone can have on the App? UPDATE: My Question should have been: In what scenarios do they make difference? Sergio's answer was the one I was expecting. From Apple docs about waitUntilDone : A Boolean that specifies whether the current thread blocks until after the specified selector is performed on the receiver on the main thread. Specify YES to block this thread; otherwise, specify NO to have this method return immediately. If the current thread is also the main thread, and you