From 8805f5d46aeda0195b0883f5cc5f0c4c59eca813 Mon Sep 17 00:00:00 2001 From: Niklas Merz Date: Fri, 6 Sep 2019 13:53:36 +0200 Subject: [PATCH] Finish revert and correct Xcode warnings --- src/ios/CDVWKInAppBrowser.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ios/CDVWKInAppBrowser.m b/src/ios/CDVWKInAppBrowser.m index e03d5c9..02aa80d 100644 --- a/src/ios/CDVWKInAppBrowser.m +++ b/src/ios/CDVWKInAppBrowser.m @@ -314,20 +314,20 @@ static CDVWKInAppBrowser* instance = nil; dispatch_async(dispatch_get_main_queue(), ^{ if (weakSelf.inAppBrowserViewController != nil) { float osVersion = [[[UIDevice currentDevice] systemVersion] floatValue]; - if (!tmpWindow) { + if (!self->tmpWindow) { CGRect frame = [[UIScreen mainScreen] bounds]; if(initHidden && osVersion < 11){ frame.origin.x = -10000; } - tmpWindow = [[UIWindow alloc] initWithFrame:frame]; + self->tmpWindow = [[UIWindow alloc] initWithFrame:frame]; } UIViewController *tmpController = [[UIViewController alloc] init]; - [tmpWindow setRootViewController:tmpController]; - [tmpWindow setWindowLevel:UIWindowLevelNormal]; + [self->tmpWindow setRootViewController:tmpController]; + [self->tmpWindow setWindowLevel:UIWindowLevelNormal]; if(!initHidden || osVersion < 11){ - [tmpWindow makeKeyAndVisible]; + [self->tmpWindow makeKeyAndVisible]; } [tmpController presentViewController:nav animated:!noAnimate completion:nil]; } @@ -787,7 +787,7 @@ BOOL isExiting = FALSE; #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 if (@available(iOS 11.0, *)) { - [self.webView.scrollView setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever]; + [self.webView.scrollView setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever]; } #endif