I have a UIWebView in a viewcontroller, which has two methods as below. The question is if I pop out(tap back on navigation bar) this controller before the second thread is
Here is some code to run UIKit elements on the main thread. If you're working on a different thread and need to run a piece of UIKit code, just put it inbetween the brackets of this Grand Central Dispatch snippet.
dispatch_async(dispatch_get_main_queue(), ^{
// do work here
});