Skip to content

Commit 8805f5d

Browse files
committed
Finish revert and correct Xcode warnings
1 parent 8810c6a commit 8805f5d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ios/CDVWKInAppBrowser.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,20 +314,20 @@ - (void)show:(CDVInvokedUrlCommand*)command withNoAnimate:(BOOL)noAnimate
314314
dispatch_async(dispatch_get_main_queue(), ^{
315315
if (weakSelf.inAppBrowserViewController != nil) {
316316
float osVersion = [[[UIDevice currentDevice] systemVersion] floatValue];
317-
if (!tmpWindow) {
317+
if (!self->tmpWindow) {
318318
CGRect frame = [[UIScreen mainScreen] bounds];
319319
if(initHidden && osVersion < 11){
320320
frame.origin.x = -10000;
321321
}
322-
tmpWindow = [[UIWindow alloc] initWithFrame:frame];
322+
self->tmpWindow = [[UIWindow alloc] initWithFrame:frame];
323323
}
324324
UIViewController *tmpController = [[UIViewController alloc] init];
325325

326-
[tmpWindow setRootViewController:tmpController];
327-
[tmpWindow setWindowLevel:UIWindowLevelNormal];
326+
[self->tmpWindow setRootViewController:tmpController];
327+
[self->tmpWindow setWindowLevel:UIWindowLevelNormal];
328328

329329
if(!initHidden || osVersion < 11){
330-
[tmpWindow makeKeyAndVisible];
330+
[self->tmpWindow makeKeyAndVisible];
331331
}
332332
[tmpController presentViewController:nav animated:!noAnimate completion:nil];
333333
}
@@ -787,7 +787,7 @@ - (void)createViews
787787

788788
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000
789789
if (@available(iOS 11.0, *)) {
790-
[self.webView.scrollView setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];
790+
[self.webView.scrollView setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];
791791
}
792792
#endif
793793

0 commit comments

Comments
 (0)