I\'m trying to build a native application that for all intents and purposes is HTML/CSS and Javascript. It all works fine, but when the UIWebView loads there\'s a delay whi
Add the Image to View Controller in XIB or to Plist of "Launch Image". This will show the Splash Screen from Beginning. While loading the webView in viewDidLoad hide the webView
webView.hidden = YES;
Load the webView with HTML content as usual in viewDidLoad
Once the webView is loaded, perform updating the view after some. I think this will allow some time for delegate function to complete and proceed with UI updates.
- (void)webViewDidFinishLoad:(UIWebView *)webView {
[self performSelector:@selector(updateWebView) withObject:nil afterDelay:1];
}
-(void) updateWebView {
webView.hidden = NO;
self.view = webViewElement;
// or
[self.view addSubview:webViewElement];
}
I tried as above is working fine with no white Screen.