diff --git a/MVMCoreUI/BaseControllers/MFViewController.m b/MVMCoreUI/BaseControllers/MFViewController.m index edbabf80..bc8208dd 100644 --- a/MVMCoreUI/BaseControllers/MFViewController.m +++ b/MVMCoreUI/BaseControllers/MFViewController.m @@ -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 {