Hi in my application i have UIWebView
which loads the pdf
file using URL its very large file its taking too much time to load. Now i want show the
You should start/stop the progressbar in webview delegate methods.
Add following line in your viewDidLoad
.
webview.delegate = self;
Add following functions in your controller...
-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
{
//Start the progressbar..
return YES;
}
-(void)webViewDidFinishLoad:(UIWebView *)webView
{
//Stop or remove progressbar
}
-(void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
{
//Stop or remove progressbar and show error
}