File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,15 @@ - (void)applicationWillResignActive:(UIApplication *)application
2626 UIImage *splash = [UIImage imageNamed: imgName];
2727 if (splash == NULL ) {
2828 self.window .hidden = YES ;
29- imageView = NULL ;
3029 } else {
3130 imageView = [[UIImageView alloc ]initWithFrame:[self .window frame ]];
3231 [imageView setImage: splash];
33- [UIApplication.sharedApplication.keyWindow.subviews.lastObject addSubview: imageView];
32+ [self .viewController.view addSubview: imageView];
3433 }
3534}
3635
37- // Code below borrowed from the CDV splashscreen plugin ( https://github.com/apache/cordova-plugin-splashscreen)
38- // Made some adjustments though, because landscape splashscreens are not available for iphone < 6 plus
36+ // Code below borrowed from the CDV splashscreen plugin @ https://github.com/apache/cordova-plugin-splashscreen
37+ // Made some adjustments though, becuase landscape splashscreens are not available for iphone < 6 plus
3938- (CDV_iOSDevice) getCurrentDevice
4039{
4140 CDV_iOSDevice device;
You can’t perform that action at this time.
0 commit comments