You can do it through
- (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated
when the index of the "Cancel" button is called.
You can also simply remove the warning view from the supervisor (ie, " removeFromSuperview "). Make sure the " release " view is alloc'd in case you are not using ARC.
Michael dautermann
source share