Hidden UINavigationController inside UITabBarController

后端 未结 3 1785
慢半拍i
慢半拍i 2021-01-14 09:54

I have an application with 5 UIViewControllers each inside a corresponding UINavigationController, all tucked inside a UITabBarController

3条回答
  •  执笔经年
    2021-01-14 10:26

    The best idea I could think of would be to either push a modal navigation controller for your view (which would hide the tab bar which you do not want), or to get the tab bar controller current selected view controller (really your navigation controller for a tab) and push your new view controller on there - and then pop that view when another tab is selected with a tab bar delegate.

    It seems wierd to me to push the view onto random tabs though, if the view is created from a dialog that is modal, I don't see why the view itself should not also be modal and hide tabs.

提交回复
热议问题