所以,我有一个主菜单,当我从主菜单单击一个按钮时,我想显示另一个 ViewController,所以我创建了一个 NavigationController,我将 ViewController 添加到这个 NavigationController 并尝试显示,但没有任何反应。我推送我的新 ViewController 的代码:
SubMenuViewController *subVC = [[SubMenuViewController alloc]initWithNibName:@"SubMenuViewController" bundle:nil];
UINavigationController *nav = [[UINavigationController alloc] init];
[nav pushViewController:subVC animated:YES];
nav = nil;
此代码在 MainViewController 中调用,当按下一个按钮时......
我的SubMenuViewController 创建了一个SplitViewController,还有两个NavigationController,一个用于左边的表格,另一个用于右边的表格,但这些都不是问题,对吧?
如果您需要更多信息来帮助我,请告诉我