我是 iPhone 新手,
我想将我的课程更改Rootviewcontroller
为我的新课程并使其成为导航控制器。
这是我的代码片段,
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
UINavigationController *navigationController=[[UINavigationController alloc] initWithRootViewController:detailViewController];
[self.window addSubview:navigationController.view];
[self.window makeKeyAndVisible];
return YES;
}
我SIGABRT
说'adding a root view controller <NewClass: 0x6a8dd50> as a child of view controller: