From 39fdff056ffdc773d83e574a831a61bf877cbad4 Mon Sep 17 00:00:00 2001 From: panxi Date: Tue, 15 Oct 2019 11:53:27 -0400 Subject: [PATCH] use top viewcontroller --- .../MVMCore/PresentationHandling/MVMCoreNavigationOperation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationOperation.m b/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationOperation.m index d38b78c..ee960aa 100644 --- a/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationOperation.m +++ b/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationOperation.m @@ -177,7 +177,7 @@ } } - if (self.navigationObject.viewController && (self.navigationObject.viewController != [[self.navigationObject.navigationController viewControllers] lastObject])) { + if (self.navigationObject.viewController && (self.navigationObject.viewController != self.navigationObject.navigationController.topViewController)) { [self.navigationObject.navigationController popToViewController:self.navigationObject.viewController animated:self.navigationObject.animated]; } else { [self markAsFinished];