简体   繁体   中英

Phonegap showing white screen after the splash screen - IOS

I am trying to kill the whitescreen which automatically loads for two secs after I launch my phonegap application after the splash screen before the login page.

I have tried the AutoHideSplashScreen to NO and added navigator.splashscreen.hide(); in the login.html as referenced in the below reference. But it killed the splash screen instead of white screen. Now on launching the app it takes directly to login.html without a splash screen. Please help me out killing the default white screen between splash screen and login.html.

how to to kill the white flickering splashscreen at the start of phonegap iOS app?

In your ViewController's ViewDidload, Hide the Webview and After It will Load Show it in webViewDidFinishLoad method.

First You have to Hide the WebView in View DidLoad.

- (void)viewDidLoad
{
    [super viewDidLoad];
thewebview.Hidden=YES;
} 

Then Show the Webview after Loading Finished

 -(void)webViewDidFinishLoad:(UIWebView *)webView {
        NSLog(@"finish");   
      thewebview.Hidden=NO;
    }  

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM