隐藏选项卡栏应用程序中的选项卡栏
我从模板创建了一个新项目:
IPhoneOS>Application>Tab Bar Application。
我得到两个标签。
如何使第二个成为全屏隐藏选项卡栏甚至状态栏?
我尝试检查“想要全屏” - 但没有帮助。
(不太重要......当我确实获得全屏时,我会回来吗?)
请给我一个简单的代码/指南或对它们的引用,因为我是初学者 - 我和编译器有太多问题使事情变得更糟
谢谢 阿萨夫
I have created a new project from the template:
IPhoneOS>Application>Tab Bar Application.
I get two tabs.
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
Thanks
Asaf
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
要隐藏标签栏,您可以使用hidesBottomBarWhenPushed。例如:
要隐藏状态栏,您可以使用:
要隐藏导航栏,您可以使用:
To hide the tab bar you can use hidesBottomBarWhenPushed. For instance:
To hide the status bar you can use:
To hide the nav bar you can use:
你可以只使用:
You can just use:
你检查过模态视图控制器吗?
http://developer.apple.com/iphone/library/ featurearticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html
尝试在navigationController上使用presentModalViewController:animated:方法(而不是推送视图控制器)
Have you checked Modal View Controllers out?
http://developer.apple.com/iphone/library/featuredarticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html
Try the presentModalViewController:animated: method on your navigationController (instead of pushing a view controller)
实现此目的的另一种方法是使 UITabBarController 成为 UINavigationController 的 rootViewController。然后,当您按下ViewControllerAnimated:时,选项卡栏将与根视图控制器一起滑走。
Another way to accomplish this is by making the UITabBarController the rootViewController of a UINavigationController. Then when you pushViewControllerAnimated: the tab bar will slide away with the root view controller.