我正在构buildXcode 7.0的发行版本。 没有故事板,只是笔尖文件。 我有一个由应用程序委托创build的UINavigationController ,并使用视图控制器初始化它。 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; UIViewController *viewController = [[TGMainViewController alloc] initWithNibName:nil bundle:nil]; self.navigationController = [[UINavigationController alloc] initWithRootViewController:viewController]; self.navigationController.navigationBar.barStyle = UIBarStyleBlack; self.navigationController.navigationBar.hidden = YES; self.window.rootViewController = self.navigationController; [self.window makeKeyAndVisible]; 在使用以下命令导航到新视图之后: TGRoutePreparationViewController *viewController = [[TGRoutePreparationViewController alloc] initWithNibName:nil bundle:nil]; [self.navigationController pushViewController:viewController animated:YES]; 然后回去使用: [self.navigationController popViewControllerAnimated:YES]; 我收到以下错误: Attempting to load the view […]