PDA

View Full Version : Activity indicator




joshsroka
Mar 15, 2009, 12:08 PM
Why does my ball not stop spinning?

- (void)viewDidLoad {

NSString *urlAddress = @"http://reader.mac.com/mobile/v1/http%3A%2F%2Fwww.wjfk.com%2Fpages%2Fpodcast%2F119567.rss";

//Create a URL object.
NSURL *url = [NSURL URLWithString:urlAddress];

//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];

//Load the request in the UIWebView.
[webView loadRequest:requestObj];

UIApplication* app = [UIApplication sharedApplication];
app.networkActivityIndicatorVisible = YES;
}

- (void)webViewDidFinishLoad:(UIWebView*)webView {
UIApplication* app = [UIApplication sharedApplication];
app.networkActivityIndicatorVisible = NO;
}



fishkorp
Mar 15, 2009, 12:16 PM
Do you have that setup as the UIWebViewDelegate? Otherwise that method will never get called.