alert = [[[UIAlertView alloc] initWithTitle:@"\r\rConfiguring Preferences\rPlease Wait..."
message:nil delegate:self cancelButtonTitle:nil otherButtonTitles: nil] autorelease];
[alert show];
//如果你还想给UIAlertView添加一个等待提示符,则可以这么做:
alert = [[[UIAlertView alloc] initWithTitle:@"\r\rConfiguring Preferences\rPlease Wait..."
message:nil delegate:self cancelButtonTitle:nil otherButtonTitles: nil] autorelease];
[alert show];
UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
indicator.center = CGPointMake(alert.bounds.size.width / 2, alert.bounds.size.height - 50);
[indicator startAnimating];
[alert addSubview:indicator];
[indicator release];