This is so weird to me. Yesterday I think I had this same crash once on an iPhone4 ios6 device. Today I tried running my app in the simulator and it is reliably crashing on me when I call pushViewController. Here is the code that crashes it.
PFObject *selectedGame = [self.myTurnList objectAtIndex: index];
[self.myTurnList removeObjectAtIndex:index];
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle:nil];
GuessWordController *guessWord = [storyboard instantiateViewControllerWithIdentifier:@"GuessWordController"];
guessWord.game = selectedGame;
//[self performSegueWithIdentifier:@"toGuessWord" sender:self];
[self.navigationController pushViewController:guessWord animated:NO];
return;
I've put a bunch of NSLog's in there and everything seems to look great all the way to the return statement. However I get 'EXC_BAD_ACCESS' thrown and no output to the debugger. I also have NSLog's in my GuessWordController's viewDidLoad and none of them show up.
I have tried changing pushViewController to doing a segue that I set up with the storyboard instead and that seems to work. But I wanted to do it with pushViewController because I don't want the animation.
Is there any reason the way I have this set up would cause the app to crash, specifically ios5.1?