[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
или
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
добьются цели!
edit: Найден этот в старом проекте, клиент запросил индикатор с лучшей видимостью:
-(void)invokeMegaAnnoyingPopup
{
self.megaAlert = [[[UIAlertView alloc] initWithTitle:@"Please wait..."
message:nil delegate:self cancelButtonTitle:nil
otherButtonTitles: nil] autorelease];
[self.megaAlert show];
UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc]
initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
indicator.center = CGPointMake(self.megaAlert.bounds.size.width / 2,
self.megaAlert.bounds.size.height - 45);
[indicator startAnimating];
[self.megaAlert addSubview:indicator];
[indicator release];
}
-(void)dismissMegaAnnoyingPopup
{
[self.megaAlert dismissWithClickedButtonIndex:0 animated:YES];
self.megaAlert = nil;
}
Вам, конечно, понадобится UIAlertView *megaAlert;
, определенный в вашем классе.