简体   繁体   English

为什么我不能在NavigationController中推送视图控制器?

[英]Why i can not push a view controller in my navigationController?

In my navigation based application, first view is sign in or signup view. 在我基于导航的应用程序中,第一个视图是登录或注册视图。 After that i am using a view which is using tab view controller. 之后,我使用的是使用标签视图控制器的视图。 That view has three tab items. 该视图具有三个选项卡项。 Now i want to create a new view and push in navigationController. 现在,我想创建一个新视图并推入navigationController。 But its not working. 但是它不起作用。 But adding new view as subView in tabBarController View works. 但是,可以在tabBarController视图中将新视图添加为subView。 I want navigation for subViews for each tabBarItem? 我想为每个tabBarItem的subView导航吗? How can i do that? 我怎样才能做到这一点?

See this 看到这个

In your case just create three items and make them all UINavigationControllers like the first tab item in the above example. 在您的情况下,只需创建三个项目并使它们全部成为UINavigationControllers,就像上面示例中的第一个选项卡项目一样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 navigationController推送相同的视图控制器(个体经营) - navigationController push same view controller (self) 在推入另一个视图控制器后,如何向navigationController的右侧添加按钮? - How do I add a button to my navigationController's right side after pushing another view controller in? 为什么不能将新的视图控制器推送到当前视图? - Why can't I push a new view controller onto the current view? 为什么我不能将View Controller用作属性? - Why can't I use my View Controller as a property? 我如何检查我当前的navigationController.view是否是一个classes.view? Reason =推送通知。 + iphone - How do i check whether my current navigationController.view = a classes.view? Reason = push notifications. + iphone 为什么self.navigationController.visibleViewController在不可见的视图控制器上返回true - why is self.navigationController.visibleViewController returning true on view controller that is not visible 导航控制器模拟推送的更新视图 - Update view of a NavigationController simulating a push 无法将子视图推送到navigationController - Not able to push sub view to navigationController 在Navigationcontroller问题中添加视图控制器 - adding view controller in navigationcontroller issue 将视图控制器推入NavigationController时出现问题 - Problem in pushing a view controller into a navigationController
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM