Reputation: 3200
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?
Upvotes: 1
Views: 3877
Reputation: 4789
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;
}
Upvotes: 1