【发布时间】:2013-07-24 19:23:13
【问题描述】:
在 UIAlertView 显示消息中获取 Exc_Bad_Access。
UIAlertView *systemAlert1 = [[UIAlertView alloc]initWithTitle:@"System message" message:@"note" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[systemAlert1 show]; **//Crashing on this line [EXC_BAD_ACCESS]**
[systemAlert1 release];
为什么我会得到这个?请帮忙
【问题讨论】:
-
开启僵尸模式后检查。
-
您的代码似乎没问题。问题一定出在其他地方。你在哪里显示你的警报?是后台线程吗?
-
它在模拟器上运行正常,但在设备上崩溃。
-
僵尸启用但它正在抛出 exc_bad_access
-
需要更多代码才能看到整个图片
标签: iphone objective-c xcode crash exc-bad-access