2011-11-29 117 views

回答

1
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Title" message:@"Message" delegate:self cancelButtonTitle:nil otherButtonTitles:nil]; 
UIActivityIndicatorView *progress= [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(125, 50, 30, 30)]; 
progress.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge; 
[alert addSubview:progress]; 
[progress startAnimating]; 
[alert show]; 
[progress release]; 

然後解除警報視圖和微調:(你需要做的警報視圖中的成員)

[alert dismissWithClickedButtonIndex:0 animated:YES]; 
[alert release]; 
0

只需撥打:

[theAlertViewInstance dismissWithClickedButtonIndex: 0 animated:YES]; 

這應該做,你需要什麼。