我新的iPhone,变化RootViewController的到导航控制器
我想改变我的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:
同样存在问题米发生,即使在写这个.. – Krunal
检查编辑答案 –
谢谢你的答案保存我的最后4小时的工作 –