How to hide UITabBar when minimized UISplitViewController shows DetailController ViewController?

I have a window with a UITabBarController as rootViewController. UITabBarController has two children: UINavigationController and UISplitViewController (according to the last docs this should be OK, and it works, except for the following problem).

Both the UINavigationController and the UISplitViewController show MyMasterTableViewController, which can call instances of MyDetailViewController. MyDetailViewController has self.hidesBottomBarWhenPushed = YES to make the TabBar disappear when clicked.

When I click MyDetailViewController on a UINavigationController, the UITabBar disappears as expected. When I show MyDetailViewController on a UISplitViewController while it is crashing, I would expect the same, since the minimized UISplitViewController contains only a UINavigationController with a wizard that pushes Detail ViewController. However, it is not.

How can I let the minimized UISplitViewController make the UITabBar hide the display of MyDetailViewController, how does the UINavigationController do this?

+4
source share
1 answer

, Hide Hide Bar Push, UISplitViewController UITabBarController. UITabBarController viewControllers iPhone, UINavigationController MasterViewController . Push. UISplitViewController - , , iPad.

0

Source: https://habr.com/ru/post/1606865/


All Articles