隐藏选项卡栏应用程序中的选项卡栏 [英] Hide the tab bar in a tab bar application
问题描述
我已经从模板创建了一个新项目:
I have created a new project from the template:
IPhoneOS>应用程序>标签栏应用程序。
IPhoneOS>Application>Tab Bar Application.
我得到两个标签。
如何让第二个成为隐藏标签栏甚至状态栏的全屏?
How can I make the second become a full screen hiding the tab bar and even the status bar?
我试图检查想要全屏 - 但它没有帮助。
I tried to check the "Wants Full screen" - but it didn't help.
(更不重要......当我得到全屏我会回来吗?)
(Much less important... When I do get a full screen I do I get back?)
请给我一个简单的代码/指南或参考它们,因为我是初学者 - 而我和编译器有太多问题让事情变得更糟
Please give me a simple code/guidelines or a reference to them, cause I'm a beginner - and Me and the compiler got too many issues to make things worse
谢谢
Asaf
Thanks Asaf
推荐答案
要隐藏标签栏,您可以使用 hidesBottomBarWhenPushed 。例如:
To hide the tab bar you can use hidesBottomBarWhenPushed. For instance:
MyController *myController = [[MyController alloc]init];
myController.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:myController animated:YES];
[myController release];
要隐藏您可以使用的状态栏:
To hide the status bar you can use:
[[UIApplication sharedApplication] setStatusBarHidden:YES];
要隐藏您可以使用的导航栏:
To hide the nav bar you can use:
self.navigationController.navigationBarHidden = YES;
这篇关于隐藏选项卡栏应用程序中的选项卡栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!