ios - 应用程序中的两个选项卡 Controller

标签 ios swift uinavigationcontroller uitabbarcontroller

我正在尝试在应用程序中实现这个层次结构。我知道这可能不是一个好的 UI 解决方案。但是我有一个应用程序的设计并且我想实现它。

我想这样处理:

enter image description here

但我总是在嵌入 SecondTabBarController 的 ViewController 中看到 FirstTabBarController。

实现它的最佳方法是什么?

最佳答案

您可以尝试以下方法:

1) 在窗口根 Controller 上分配 UINavigationController(称之为 App Navigation Controller)

2) 根据您的应用要求将您的自定义 UITabbarController 推送和弹出到 App Navigation Controller

3) 仅从那里处理自定义 tabar Controller 的自定义子 Controller 的流程。

关于ios - 应用程序中的两个选项卡 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39344043/

相关文章:

swift - 在 Swift 中使用或不使用 "!"有什么区别?

objective-c - 在基于导航 Controller 的应用程序的最终 View 中隐藏或禁用后退按钮

iphone - 使用 block 的 iOS View 转换

ios - "libRestKit.a, file was built for archive which is not the architecture being linked (armv7)"

ios - 更改 UITextField 和 UITextView 光标/插入符号颜色

swift - 我们如何在 swift 中使用 NSSelectorFromString?

ios - ios中如何知道相机拍照完成

ios - 解析 - 设置设备 token

ios - Storyboard - 在没有 UINavigationController 的情况下弹出到根 UIViewController?

ios - uitableview + 导航 Controller 设置所选元素的标题