我的程序在iOS 4的/ Xcode的工作完美3.我最近升级到最新版本的Xcode 4/5的iOS我得到以下行 “SIGABRT”:的iOS的Xcode 4的UINavigationController
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
这条线在应用程序中完成了在代表中的启动。以下是一些示例代码:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
rootViewController = [[MyCustomViewController alloc] initWithStyle:UITableViewStylePlain];
rootViewController.window = window;
window.rootViewController = rootViewController;
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];
}
任何帮助表示赞赏。
无法诊断,无需更多的代码。初始化rootViewController时可能出错。 – danielbeard 2012-02-09 07:13:02
对不起,添加更多代码。 – user1120008 2012-02-09 07:20:37