Question

bool _WebTryThreadLock(bool), 0xae8d250: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...

My Code

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{[self.navigationController pushViewController:aController animated:YES];
});
Was it helpful?

Solution

try performSelectorinMainThread:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top