我想弄清楚为什么我在我的应用程序中遇到此崩溃.
它在使用ios5.1的模拟器中运行的Xcode 4.4中运行得非常好,但是当我切换到xcode 4.5和ios6时,我得到一个EXC_BAD_ACCESS代码2.这是我的代码:
- (void) myMethod
{
UIAlertView *alertview = [[[UIAlertView alloc]initWithTitle:@"Title" message:@"message" delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil] autorelease];
alertview.tag = 1
[alertview show];
}
Run Code Online (Sandbox Code Playgroud)
这是给我一个EXC_BAD_ACCESS码2上[UIAlertView show]线
有任何想法吗?
谢谢!