CB-12875: (iOS) Pushes the inappbrowser window to a higher ui level than the existing apps window. (#284)

This commit is contained in:
Malte Norström 2018-08-21 10:28:56 +02:00 committed by Jan Piotrowski
parent de86501026
commit dc5329d157
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -11,6 +11,7 @@ Thumbs.db
*.log *.log
*.swp *.swp
*.user *.user
*.idea
node_modules node_modules

View File

@ -244,8 +244,9 @@
tmpWindow = [[UIWindow alloc] initWithFrame:frame]; tmpWindow = [[UIWindow alloc] initWithFrame:frame];
} }
UIViewController *tmpController = [[UIViewController alloc] init]; UIViewController *tmpController = [[UIViewController alloc] init];
double baseWindowLevel = [UIApplication sharedApplication].keyWindow.windowLevel;
[tmpWindow setRootViewController:tmpController]; [tmpWindow setRootViewController:tmpController];
[tmpWindow setWindowLevel:UIWindowLevelNormal]; [tmpWindow setWindowLevel:baseWindowLevel+1];
[tmpWindow makeKeyAndVisible]; [tmpWindow makeKeyAndVisible];
[tmpController presentViewController:nav animated:YES completion:nil]; [tmpController presentViewController:nav animated:YES completion:nil];