此代码导致我的应用程序在 iPhone 4 和模拟器上崩溃,但在 3GS 上运行良好。任何想法为什么会这样?
-(IBAction)startButtonClicked{
GameViewController *screen = [[GameViewController alloc] initWithNibName:nil bundle:nil];
screen.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:screen animated:YES];
[screen release];
}