How do I hid the UITabBarView when loading some view?

放肆的年华 提交于 2020-02-05 15:49:08

问题


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.



来源:https://stackoverflow.com/questions/3807255/how-do-i-hid-the-uitabbarview-when-loading-some-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!