ios - 如何在标签栏不从主视图中消失的情况下继续查看 Controller

标签 ios swift uitabbarcontroller segue

enter image description here

我需要从我的 TabBarController 转到另一个 UIViewController,而标签栏不会从 View 底部消失。

正如您在图片中看到的,当标签栏 Controller 仍显示在 View 底部时,我想在按下标签栏 Controller 的红色按钮时切换到彩色 View 。

enter image description here

最佳答案

将每个选项卡根设置为 UINativagationController。然后将当前的 UIViewControllers 设置为导航的根。然后,您可以根据需要继续搜索,标签栏将保留在底部。

例如

enter image description here

和底部流程一样,你可以在右侧再添加一个UIViewControllers

关于ios - 如何在标签栏不从主视图中消失的情况下继续查看 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55869117/

相关文章:

ios - 缺少营销图标

ios - iOS 3.1.3 上的 Core Audio 无音频

ios - 核心数据快速sugue不将数据推送到第二个 View Controller

iphone - 使用 xcode 4 在 ios 5 中创建选项卡式导航应用程序时出现问题

ios - SceneKit 加载节点与来自单独的 scn 文件的动画

swift - 如何缩放图像并将其置于 Swift 中的 UIButton 中心?

swift - 为什么 Swift 闭包不捕获 self ?

iOS - UITabBarControler 最佳实践中的登录 View

ios - UITabBarController 中的奇怪线条

IOS 标签栏 Controller : resetting Tab B based on action in Tab A