我最近向App Store提交了一款应用,但还未被接受。同时,我下载了Xcode 4.5并在 iPhone 6.0 模拟器中测试我的应用。
然而,当我尝试展示一个 UIAlertView
时,应用程序会在 [myAlertView show]
行崩溃,并出现 EXC_BAD_ACCESS
错误。但它在 iPhone 5.1 模拟器上没有问题。
这是我的代码:
UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Warning" message:@"Are you sure?" delegate:self cancelButtonTitle:@"No" otherButtonTitles:@"Yes", nil];
[myAlertView show];
这正常吗?我的代码哪里出了问题?
另外,你认为我应该重新向苹果发送我的应用程序吗?(只是询问您的建议)
提前致谢。
编辑:由于iOS 6崩溃,苹果拒绝了该应用。