我在这样的函数调用中在本地显示了一个警报视图......
UIAlertView *alert_local = [[UIAlertView alloc]
initWithTitle:nil
message:@"Are you sure want to discard what you have recorded so far?"
delegate:self cancelButtonTitle:@"Yes"
otherButtonTitles:@"No", nil];
alert_local.tag = 4;
[alert_local show];
但我没有对此做出回答是或否。在一个序列中,我弹出了从外部显示警报的视图,但警报视图仍然存在,我通过将警报视图设置为 ivar 来处理它。这是正确的方法吗?或任何其他方式来处理这种序列?为什么弹出其父视图后警报视图仍然存在?