UITabBarController 的 TabBar 阻塞了由它托管的 UINavigationController 推送的 UIViewController

UITabBarController's TabBar blocking UIViewController that is pushed by UINavigationController it hosts

我有一个 UITabBarController,它有 5 个选项卡。每个都有一个 UINavigationController。

除了每次这些 UINavigationController 中的每一个推送 ViewController 之外,一切都运行良好。它们的底部被 UITabBar 挡住了。这是正常的。

但我想知道是否可以将 UIViewController 置于 UITabBar 之上?

知道怎么做吗?

编辑:

结构如下

UITabBarController
    Tab 0: UINavigationController
    Tab 1: UINavigationController
    Tab 2: UINavigationController
    Tab 3: UINavigationController
    Tab 4: UINavigationController

所以每次 NavigationController 推送一个 Uiviewcontroller。那个 UIViewController 位置仍然被 UITabBar 阻挡,因为它在它下面。

如何让 UIViewController 位于 TabBar 之上?

你能试试看是否可行吗?

destinationController.hidesBottomBarWhenPushed = true

在进入目标视图控制器之前执行此操作。

希望对您有所帮助。