[英]App crashes on iPhone 4?
此代碼導致我的應用在iPhone 4和模擬器上崩潰,但在3GS上運行正常。 任何想法為什么會這樣?
-(IBAction)startButtonClicked{
GameViewController *screen = [[GameViewController alloc] initWithNibName:nil bundle:nil];
screen.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:screen animated:YES];
[screen release];
}
您是否已查看屏幕的viewWillAppear和viewWillLoad方法中發生了什么? 看起來您的init代碼中存在一些問題。 您在哪里打開URL?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.