加载某些视图时如何隐藏UITabBarView? [英] How do I hid the UITabBarView when loading some view?

查看:41
本文介绍了加载某些视图时如何隐藏UITabBarView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个iPhone应用程序,其中有一个UITabBarController,其中每个TabBarItem都有一个UINavigationController.

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

我希望在经过某种程度的导航之后,将TabBar隐藏起来,并以全屏视图替换它,就像iPod应用程序一样,当您到达媒体播放器时,TabBar会隐藏,而当您返回到媒体播放器时,它会返回播放列表或其他内容.

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

推荐答案

设置新的viewController的 hidesBottomBarWhenPushed: -property.当您发送 [navController pushViewController:viewController animation:YES] -function时,这将隐藏当前的 UITabBar .
当您弹出viewController时,它也会重新出现.

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.

这篇关于加载某些视图时如何隐藏UITabBarView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆