ios - 如何使用 segue 维护 UITabBar

标签 ios storyboard uitabbar

所以,我有一个层次结构(为了更好地理解,请参见图片):Navigation Controller -> Tab Bar Controller -> VC1,2,3,4,5

一切顺利,一切正常。

现在,如果我从那些 VC 中选择一个,我就会失去我的标签栏。我认为这很奇怪,因为它们都与 Tab Bar Controller VC 有连接。

有什么方法可以维护它吗?

enter image description here

谢谢

最佳答案

你不应该在 UINavigationController 中添加 UITabBarController,但你应该在 UINavigationController 中添加由 UITabBarController 管理的每个 UIViewController

喜欢下图enter image description here

关于ios - 如何使用 segue 维护 UITabBar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56109620/

相关文章:

ios - 如何使用后台点击隐藏数字键盘?

xaml - 滞后的 Storyboard动画 Windows Phone 8.1

ios - 以编程方式将选项卡添加到选项卡栏

ios - iPhone标签栏图标未对齐 - iOS 7

ios - 标签栏项目过渡

ios - 我应该什么时候创建新队列?

ios - Swift - 不可转换为 'NativeObject'

ios - 包含在 4 边(非矩形)多边形中的裁剪图像

ios - 在不使用 Segue 的情况下在 ViewController 之间传递数据

ios - 启动屏幕 Storyboard 中的横向方向可能有不同的行为吗?