UIAlertview
在子类中被解雇但在父类中被解雇时不会被解雇。有什么解决方案吗?
UIAlertView *alertView=[[[UIAlertView alloc]initWithTitle:@""
message:@"Please Select the Start Date"
delegate:self
cancelButtonTitle:@"Ok"
otherButtonTitles:nil] autorelease];
[alertView show];
委托方法:
#pragma UIAlertView Delegate
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
if (buttonIndex==0) {
[alertView dismissWithClickedButtonIndex:0 animated:YES];
}
}