UITabBarController的一个选项卡中的全屏显示 [英] Full screen in one tab of UITabBarController

查看:37
本文介绍了UITabBarController的一个选项卡中的全屏显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,通过UITabBarController切换了五个UIViewController.如何隐藏TabBar并为其中一个UIViewController提供全屏显示?

Currently, five UIViewControllers are switched via a UITabBarController. How can I hide the TabBar and provide a full-screen for one of the UIViewControllers?

例如:

  • 单击中间选项卡
  • UITabBarController TabBar已隐藏
  • UIViewController会全屏显示(也隐藏状态栏)
  • 单击中间的一个按钮时,切换到第一个选项卡(状态栏恢复,UITabBarController TabBar恢复)

推荐答案

您可以将视图控制器放在导航控制器中,并将视图控制器的 hidesBottomBarWhenPushed 属性设置为 YES .可以使用共享应用程序对象的 statusBarHidden 属性来隐藏状态栏.

You can put the view controller in a navigation controller and set the view controller's hidesBottomBarWhenPushed property to YES. Hiding the status bar can be done using statusBarHidden property of the shared application object.

这篇关于UITabBarController的一个选项卡中的全屏显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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