iOS故事板 - 在故事板上禁用状态栏一次 [英] iOS storyboard - Disable status bar on storyboard once
问题描述
在界面生成器中使用
完全禁用状态栏,这样当我创建一个新的 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屋!