From c6ff803113eb71c39bf41a774204efdebcce0377 Mon Sep 17 00:00:00 2001 From: Birge Clark Date: Tue, 19 Jan 2016 10:31:28 -0800 Subject: [PATCH] CB-7679 add fix for iOS upload. This closes #139 --- src/ios/CDVInAppBrowser.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m index 8e5a75e..7cffac3 100644 --- a/src/ios/CDVInAppBrowser.m +++ b/src/ios/CDVInAppBrowser.m @@ -998,6 +998,12 @@ @implementation CDVInAppBrowserNavigationController : UINavigationController +- (void) dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion { + if ( self.presentedViewController) { + [super dismissViewControllerAnimated:flag completion:completion]; + } +} + - (void) viewDidLoad { CGRect frame = [UIApplication sharedApplication].statusBarFrame;