How do I hid the UITabBarView when loading some vi

2019-08-15 19:47发布

问题:

I'm developing an iPhone app, where I have a UITabBarController that has a UINavigationController for each TabBarItem.

I want, after some level of navigation, to hide the TabBar, and to replace it with a full screen view, just like the iPod application, the TabBar hides when you reach the media player, and returns when you get back to the playlist or whatever.

Any help or thoughts is highly appreciated

回答1:

Set the new viewController's hidesBottomBarWhenPushed:-property. That will hide the current UITabBar when you send the [navController pushViewController:viewController animated:YES]-function.
It will also reappear when you pop the viewController.