[英]UITabBarController add viewcontroller without tab bar item
I am creating an iOS application where I need to add a SideMenu and a UITabBarController, SideMenu and UITabBarController there purpose is to let the users navigates between different ViewControllers, I have 3 tab bar items in UITabBarController and in the SideMenu I have 5 items, when the user click on an item in the side menu I have to show the corresponding view controller 我正在创建一个iOS应用程序,需要在其中添加SideMenu和UITabBarController,SideMenu和UITabBarController,目的是让用户在不同的ViewController之间导航,在UITabBarController中有3个标签栏项,在SideMenu中有5个项,当用户单击侧面菜单中的项目,我必须显示相应的视图控制器
Question: It's possible to add a ViewController without a TabBarItem to the UITabBarController, when the user click on the side menu item, I trigger the UITabBarController to select the corresponding view controller, or its not possible in UITabBarController I need to find another solution, if so please advice which solution is better. 问题:可以将不带TabBarItem的ViewController添加到UITabBarController,当用户单击侧面菜单项时,我触发UITabBarController选择相应的视图控制器,或者在UITabBarController中无法实现,我需要找到其他解决方案,如果因此,请提出哪种解决方案更好的建议。
In the picture above, These are my viewcontrollers but I need to hide the tab bar item for the last view controller and keep the UITabBarViewController behave normally when I programmatically select the last view controller from the side menu 在上图中,这些是我的viewcontrollers,但是当我从侧面菜单中以编程方式选择最后一个view controller时,我需要隐藏最后一个view controller的选项卡栏项并保持UITabBarViewController正常运行
If the ViewController of the side menu is different than the TabBar. 如果侧面菜单的ViewController与TabBar不同。 You can PUSH the view directly in the controller that is selected in the tabbar in that moment. 您可以直接在那一刻在选项卡栏中选择的控制器中按视图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.