EXC_BAD_ACCESS on UIAlertview code=1
问题 I am getting the EXC_BAD_ACCESS on [alert show] line. Why I am getting this? alert = [[UIAlertView alloc]initWithTitle:@"Application Alert" message:@"all date popup" delegate:self cancelButtonTitle:nil otherButtonTitles:@"Update",nil]; [alert show]; //EXC_BAD_ACCESS on this line 回答1: Just make delegate nil ,don't apply self to delegate .code it like below alert = [[UIAlertView alloc]initWithTitle:@"Application Alert" message:@"all date popup" delegate:nil cancelButtonTitle:nil