diff --git a/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationHandler.m b/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationHandler.m index 5849d9f..4a31a6c 100644 --- a/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationHandler.m +++ b/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationHandler.m @@ -117,11 +117,14 @@ } - (void)removeCurrentViewController { - if (self.viewControllerToPresentOn.presentedViewController) { - [[MVMCoreNavigationHandler sharedNavigationHandler] dismissTopViewControllerAnimated:YES]; - } else { - [[MVMCoreNavigationHandler sharedNavigationHandler] popTopViewControllerAnimated:YES]; - } + [MVMCoreDispatchUtility performBlockOnMainThread:^{ + // presentedViewController must be used on main thread + if (self.viewControllerToPresentOn.presentedViewController) { + [[MVMCoreNavigationHandler sharedNavigationHandler] dismissTopViewControllerAnimated:YES]; + } else { + [[MVMCoreNavigationHandler sharedNavigationHandler] popTopViewControllerAnimated:YES]; + } + }]; } #pragma mark - Navigation Simple