How to apply SVProgressHUD in a UIWebView?

303 Views Asked by At

I have this code, but doesn't work and i don't know why?

- (void)webViewDidStartLoad:(UIWebView *)web
{
    [SVProgressHUD showWithStatus:@"Loading..."];
}

- (void)webViewDidFinishLoad:(UIWebView *)web
{
    [SVProgressHUD dismiss];
}
1

There are 1 best solutions below

0
On

Your question is far away from being complete enough to be answered properly, but if I have to guess I'd say that those methods are never being called.

You should set your UIWebView delegate either in Interface Builder or programmatically.