我想在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];
}
最佳答案
我将拥有一个UIAlertView并在单击按钮时更改其消息...也许也可以增加其标签
尝试覆盖
-(void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
代替
clickedButtonAtIndex
关于objective-c - objective-c UIAlertView队列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11596006/