当我使用 Xcode 4.5 GM Seeds 在 iOS6 Simulator 上运行我的应用程序时,此代码崩溃:
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 上发生了什么崩溃?