I am trying to understand why I am getting this crash in my application.
It works fine in Xcode 4.4, running in a simulator with ios5.1, but when I switch to xcode 4.5 and ios6, I get the code EXC_BAD_ACCESS 2. Here is my code:
- (void) myMethod { UIAlertView *alertview = [[[UIAlertView alloc]initWithTitle:@"Title" message:@"message" delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil] autorelease]; alertview.tag = 1 [alertview show]; }
this gives me the code EXC_BAD_ACCESS 2 in the line [UIAlertView show]
any ideas?
thank!
Sean Danzeiser Sep 17 '12 at 23:57 2012-09-17 23:57
source share