From 32d867f8e45c2b14580b64c48d8f963b6b1d594f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20C=C3=A9sar?= Date: Sun, 23 Jul 2017 18:03:06 +0200 Subject: [PATCH] CB-12586 (iOS) fix method hide doesn't work This closes #229 --- src/ios/CDVInAppBrowser.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m index c9ebad2..f5d05f0 100644 --- a/src/ios/CDVInAppBrowser.m +++ b/src/ios/CDVInAppBrowser.m @@ -270,7 +270,7 @@ dispatch_async(dispatch_get_main_queue(), ^{ if (self.inAppBrowserViewController != nil) { _previousStatusBarStyle = -1; - [self.viewController dismissViewControllerAnimated:YES completion:nil]; + [self.inAppBrowserViewController.presentingViewController dismissViewControllerAnimated:YES completion:nil]; } }); }