So I have a view containing a web view with HTML content. This is my code to display it :
NSURL *url = [NSURL URLWithString:urlWeb];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[vue loadRequest:request];
vue.scalesPageToFit = YES;
This works well. But of course there is a little latency before the HTML content is displayed, and I want to display a UIActivityIndicator at this moment.
I know that I must use :
[myActivityIndicator startAnimating];
[myActivityIndicator stopAnimating];
The only thing I miss is how to know when the HTML content is completely loaded ?
Thanks for your advices !