我有一个 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
在进入目标 View Controller 之前执行此操作。
希望这对您有所帮助。
关于ios - UITabBarController 的 TabBar 阻塞了由它托管的 UINavigationController 推送的 UIViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31869338/