我最近向 App Store 提交了一个尚未被接受的应用程序。同时,我下载了 Xcode 4.5 并在 iPhone 6.0 Simulator 中测试了我的应用程序。
但是,当我打算显示 时,应用程序会因错误而在线UIAlertView
崩溃。它适用于 iPhone 5.1 模拟器。 [myAlertView show]
EXC_BAD_ACCESS
这是我的代码:
UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Warning" message:@"Are you sure?" delegate:self cancelButtonTitle:@"No" otherButtonTitles:@"Yes", nil];
[myAlertView show];
这正常吗?我的代码做错了什么?
另外,您认为我应该将我的应用程序重新发送给 Apple 吗?(只是征求您的意见)
提前致谢。
编辑:由于 iOS 6 崩溃,Apple 拒绝了该应用程序。