iOS故事板 - 在故事板上禁用状态栏一次 [英] iOS storyboard - Disable status bar on storyboard once

查看:88
本文介绍了iOS故事板 - 在故事板上禁用状态栏一次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

界面生成器中使用 Storyboard 时, Xcode 中有没有办法完全禁用状态栏,这样当我创建一个新的 View Controller 时,我不必将状态栏从推断变为没有。

Is there a way in Xcode when using the Storyboard in the Interface Builder to disable the status bar completely, so that when I create a new View Controller I don't keep having to turn "status bar" from inferred to none.

推荐答案

您是否已经检查过将 UIStatusBarHidden 设置为<$您的Info.plist中的c $ c> YES 有效吗?请参阅文档:
http://developer.apple.com/library/mac/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW15

Have you already checked if setting UIStatusBarHidden to YES in your Info.plist works? See the documentation: http://developer.apple.com/library/mac/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW15

这将隐藏应用程序启动时的状态栏。

This will hide the status bar on application start.

这篇关于iOS故事板 - 在故事板上禁用状态栏一次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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