【发布时间】:2013-07-31 04:17:56
【问题描述】:
一个简单的问题...我的应用程序以带有 UIViewController 的 UINavigationController 开始(当然),但是当按下按钮时,我希望呈现另一个 UINavigationController。
我会这样做:
[self.navigationController presentViewController:AnotherNavigationController animated:YES completion:nil];
或:
[self presentViewController:AnotherNavigationController animated:YES completion:nil];
两种方式都有效...但我不确定哪一种是正确的...而且,一旦出现导航控制器,我似乎无法让 BarButtonItem 出现
PS。 navigationcontroller 有一个 tabbarcontroller,里面有两个标签视图
提前致谢!
【问题讨论】:
标签: ios uinavigationcontroller presentmodalviewcontroller