Move self.presentingViewController access onto the main thread.

This commit is contained in:
Hedden, Kyle Matthew 2019-10-11 13:03:41 -04:00 committed by Pfeil, Scott Robert
parent 4854b75b46
commit eaad6469bb

View File

@ -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 {