I have an app that works with tabs and webview assignments on each tab when the item on the tabbar is selected There is already setup to refresh the page. My problem now is that it takes some time to load the page and it is impossible to say whether the page is being displayed is old or fresh.
What I want to do is "loading" screen a simple image) that will be displayed until the fresh page is loaded. Here is the function running on each function:
- (zero) goToPage: (NSString *) sid {NSString * newURL = [NSString stringWithFormat: @ "% @ / mykingdom.php? Sid = % @ ", AppURL, sid]; [Second view loadRequest: [NSRR request request with url: [NSUr URLWithString: newURL]]]; }
Thanks! UIWebViewDelegate has two easy ways:
- webViewDidStartLoad: (UIWebView *) webView - webViewDidFinishLoad: (UIWebView *) webView
You can easily apply and do whatever you want. Cheers,
Comments
Post a Comment