我在[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