iOS 故事板 - 禁用故事板上的状态栏一次 [英] iOS storyboard - Disable status bar on storyboard once
问题描述
在 Interface Builder
中使用 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.
推荐答案
您是否已经检查过在 Info.plist 中将 UIStatusBarHidden
设置为 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屋!