I have showed an alert view locally in an function call like this...
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];
But I have not responded YES or NO for that. And In a sequence I have popped the view which is showing the alert from outside, but alert view remains, I have handled it by making the alert view as ivar. Is this the correct approach? or Any other way to handle this kind of sequence? Why the alert view remains after its parent view is popped?