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