Ajouter un indicateur d'activité sur une uiwebview

J'ai un viewDidLoad qui crée un affichage web, et commence à un indicateur d'activité. Comment puis-je faire de l'indicateur d'activité s'arrête uniquement lorsque la page web s'affiche? Comment puis-je ajouter des mots à l'indicateur d'activité comme "Chargement"?

//Create the UIWebView
UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];

[self.view addSubview:webView];

//Start the throbber to check if the user exists
UIActivityIndicatorView *activityView=[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
activityView.center = CGPointMake([self screenWidth] / 2.0, 370.0);
[activityView startAnimating];
activityView.tag = 100;
[self.view addSubview:activityView];

NSString* url = @"http://google.com";
NSURL* nsUrl = [NSURL URLWithString:url];
NSURLRequest* request = [NSURLRequest requestWithURL:nsUrl cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData timeoutInterval:30];


//Remove activity view
UIView *viewToRemove = [self.view viewWithTag:100];
//[viewToRemove removeFromSuperview];

[webView loadRequest:request];
vérifier ma réponse ci-dessous

OriginalL'auteur cdub | 2013-10-20