Dispatch Async to Main Queue and Modal Windows

Kirby Turner: Instead of dispatching the completion() to the main queue, I call it directly from the background thread. In the completion block itself, I decide how to get the code should run in the main thread. If my window isn’t modal, then I can use dispatch_async(dispatch_get_main_queue(), ^{}). But if my window is modal, which … Continue reading Dispatch Async to Main Queue and Modal Windows