You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/06/13 09:54:39 UTC

[GitHub] [cordova-plugin-splashscreen] janpio commented on a change in pull request #218: Added support for showing splash screen over active view on IOS. App …

janpio commented on a change in pull request #218: Added support for showing splash screen over active view on IOS. App …
URL: https://github.com/apache/cordova-plugin-splashscreen/pull/218#discussion_r293297465
 
 

 ##########
 File path: src/ios/CDVSplashScreen.m
 ##########
 @@ -60,6 +60,30 @@ - (void)observeValueForKeyPath:(NSString*)keyPath ofObject:(id)object change:(NS
     [self updateImage];
 }
 
+- (UIViewController*)getCurrentViewController {
+    // Grab the view controller that is currently presented.
+    UIViewController *currentViewController = [[[UIApplication sharedApplication] delegate] window].rootViewController;
+    UIViewController *keyRootController = [UIApplication sharedApplication].keyWindow.rootViewController;
+    
+    // Now present the alert on the view controller that is currently presenting.
 
 Review comment:
   What does "alert" refer to here?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org