简体   繁体   English

应用在iPhone 4上崩溃了吗?

[英]App crashes on iPhone 4?

This code causes my app to crash on an iPhone 4 and on the simulator but works perfectly fine on a 3GS. 此代码导致我的应用在iPhone 4和模拟器上崩溃,但在3GS上运行正常。 Any ideas why this might be? 任何想法为什么会这样?

-(IBAction)startButtonClicked{

 GameViewController *screen = [[GameViewController alloc] initWithNibName:nil bundle:nil];
 screen.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
 [self presentModalViewController:screen animated:YES];
 [screen release]; 
}

Have you checked out what's happening in screen's viewWillAppear and viewWillLoad methods? 您是否已查看屏幕的viewWillAppear和viewWillLoad方法中发生了什么? It looks like some issue in your init code there. 看起来您的init代码中存在一些问题。 Where are you opening a URL? 您在哪里打开URL?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM