Stopping network activity indicator.
Posted
by iSharreth
on Stack Overflow
See other posts from Stack Overflow
or by iSharreth
Published on 2010-04-09T00:18:15Z
Indexed on
2010/04/09
0:23 UTC
Read the original article
Hit count: 684
I used the below code to load a webpage. Everything works fine, but I want to stop the network activity indicator after completing loading the webpage. How can we know that the webpage is loaded completely.
Anyone please help.
UIApplication* app = [UIApplication sharedApplication]; app.networkActivityIndicatorVisible = YES; // to stop it, set this to NO
NSURL *url = [NSURL URLWithString:@"http://www.google.com"]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; [webView loadRequest:request];
© Stack Overflow or respective owner