當我運行我的iOS6的模擬器應用程序和Xcode 4.5 GM種子這段代碼崩潰:崩潰對iOS6的presentViewController:但不是在iOS5的
if ([[[UIDevice currentDevice] systemVersion] isEqualToString:@"6.0"]) {
XLog(@"hier checken");
self.tabBarController = [[UITabBarController alloc] init];
self.window.rootViewController = self.tabBarController;
[self.window makeKeyAndVisible];
}
[...]
self.loginController = [[[LoginController alloc] initWithNibName:@"LoginController_iPhone" bundle:nil] autorelease];
self.loginController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
//this line occurs a crash on iOS 6 (simulator, device not tested)
[self.tabBarController presentViewController:self.loginController
animated:YES
completion:nil];
的崩潰是一個SIGABRT。沒有關於崩潰的更多信息。
在iOS6上發生這種崩潰的是什麼?
你可以發佈崩潰日誌嗎? (即使它只是SIGABRT)? –
我沒有收到控制檯中的任何崩潰日誌。 – brush51
我唯一可以建議的是評論一切,然後取消註釋一行,運行並繼續循環,直到它崩潰(或者您可以通過斷點逐步完成)。你會知道爲什麼它崩潰 –