以编程方式禁用Alertview
答
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];
答
只需拨打dismissWithClickedButtonIndex:animated:方法UIAlertView中
[alertView dismissWithClickedButtonIndex:0 animated:YES];
答
只需拨打:
[theAlertViewInstance dismissWithClickedButtonIndex: 0 animated:YES];
这应该做,你需要什么。
它工作,谢谢 –