我在一种方法中创建了两个UIAlertView视图。下面的代码如下:是可以删除以前的警报视图?
-(void) alert{
UIAlertView *alert_1 = [[UIAlertView alloc] initWithTitle:@"Message" message:@“Alert 1” delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert_1 show];
UIAlertView *alert_2 = [[UIAlertView alloc] initWithTitle:@"Message" message:@“Alert 2” delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert_2 show];
}
之后调用这个方法。 iPhone应用程序将弹出2次。
第一出现是alert_1,消失alert_1和用户按OK键后出现ALERT_2
在ALERT_2 THN出现alert_1
应除去alert_1出现时alert_2
是否可以删除先前的警报视图?
谢谢你的帮助吧 –