4

尽管我在我的 .plist 文件 UIStatusBarHidden 中将值设置为 YES,但它显示在情节提要中,但不在模拟器或设备中。如何从情节提要的视图中永久删除?

谢谢

4

1 回答 1

9

You need to select your initial view controller (either a UINavigationController, a UITabbarController or a simple UIViewController...). Make sure you selected the controller itself and not the root view of the controller.
Then in the inspector on the right panel you can tell if you want to display the status bar.

Interface Builder

Select none for the initial controller in your storyboard and every controller connected to this one should hide the status bar automatically.
If you have "standalone" controllers on your storyboard you'll have to do the same thing for each of them.

于 2012-09-30T22:44:51.723 回答