我在[alert show]行中获取了EXC_BAD_ACCESS。UIAlertview代码上的EXC_BAD_ACCESS = 1
为什么我得到这个?
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
退房这里给出我的答案[http://stackoverflow.com/a/13084383/1538079] –
你打电话它来自主线程? –
'alert'的原型是什么.. – AppleDelegate