简体   繁体   English

UITabBarController添加不带标签栏项目的viewcontroller

[英]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.

相关问题 如何在没有视图控制器的情况下将标签栏项添加到UITabBarController? - How to add a tab bar item to UITabBarController without a view controller? 将控制器添加到UITabBarController,而标签栏中没有出现新项目 - Add controller to UITabBarController without new item appearing in the tab bar 没有标签栏项目的UITabBarController中的UIViewController - UIViewController in a UITabBarController without tab bar item 从UITabBarController以模态方式呈现ViewController而不隐藏选项卡栏 - Present ViewController modally from UITabBarController without hiding the tab bar 将UINavigationController添加到UITabBarController,而不显示所有视图中的Tab Bar - Add UINavigationController to UITabBarController without Tab Bar showing up in all views 检测UITabBarController的选项卡栏项目更改 - Detect Tab bar item change for UITabBarController 以编程方式选择选项卡栏项(不使用UITabBarController) - Select a tab bar item programmatically (not using UITabBarController) 从UITabBarController场景中删除选项卡栏项 - Remove tab bar item from a UITabBarController scene 以编程方式将标签栏添加到ViewController - Add Tab Bar Programmatically to ViewController 有条件地选择标签栏项目后面的视图控制器 - Choosing viewcontroller behind tab bar item conditionally
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM