我想在 iOS 上一一显示多条消息,但问题是显示 UIAlertView 是非阻塞的。我试图处理警报关闭clickedButtonAtIndex
并在内部显示相同的警报。这是一些代码:
@interface ViewController : UIViewController <UIAlertViewDelegate>
...
@property UIAlertView *alert;
...
@end
...
[alert show]; //somewhere in code, starts chain of messages
...
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
// Some changes in alert object
[alert show];
}