Move self.presentingViewController access onto the main thread.
This commit is contained in:
parent
4854b75b46
commit
eaad6469bb
@ -67,11 +67,13 @@
|
||||
}
|
||||
|
||||
- (void)dismiss {
|
||||
if (self.presentingViewController) {
|
||||
[[MVMCoreNavigationHandler sharedNavigationHandler] dismissViewController:self animated:YES];
|
||||
} else if (self.navigationController) {
|
||||
[[MVMCoreNavigationHandler sharedNavigationHandler] popViewController:self animated:YES];
|
||||
}
|
||||
[MVMCoreDispatchUtility performBlockOnMainThread:^{
|
||||
if (self.presentingViewController) {
|
||||
[[MVMCoreNavigationHandler sharedNavigationHandler] dismissViewController:self animated:YES];
|
||||
} else if (self.navigationController) {
|
||||
[[MVMCoreNavigationHandler sharedNavigationHandler] popViewController:self animated:YES];
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
- (BOOL)isVisibleViewController {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user