开发者

IOS: statusbar problem

In my app I have two file xib FirstViewController.xib, SecondViewCotroller.xib and classic MainWindow.xib; in all I set statusBar at "none"; but when I launch my app I ever see this statusbar, why?开发者_高级运维 where is the problem?


I'm afraid you are setting the Status Bar to "None" under the "Simulated Metrics" section. The settings in this section are there to help you visually design your screens but they have no effect when the application runs.

You can set the status bar as hidden for real in your Info.plist:

<key>UIStatusBarHidden</key>
<true/>

In the XCode interface, this is done via Info.plist --> Add Row --> "Status bar is initially hidden" --> YES.

You can also change the visibility of the status bar in code via the statusBarHidden property and the setStatusBarHidden:withAnimation: method of the UIApplication class.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜