Why is the Status Bar STILL showing during Default.png?

后端 未结 6 617
灰色年华
灰色年华 2021-02-06 00:28

I\'m pretty sure that I\'ve taken all steps to correctly set my status bar to hidden. I did this in both the info.plist file (setting a UIStatusBarHidden to a boolean TRUE) as w

相关标签:
6条回答
  • 2021-02-06 00:37

    Did you figure this out already? What I did to get it to work is edit the Info.plist file in TextMate rather than in Xcode. I added the following two lines:

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

    I think the only thing different from the answers given above is that I used a text editor rather than Xcode. When you subsequently look at Info.plist in Xcode, you will see a check mark next to UIStatusBarHidden rather than a string. There is probably a way to do this directly in Xcode, but I don't know what it is.

    0 讨论(0)
  • 2021-02-06 00:40

    UIStatusBarHidden should be set to true.

    0 讨论(0)
  • 2021-02-06 00:45

    I was seeing a similar problem on an iPod Touch 2G (3.1.3), where a black rectangle - same dimensions as the status bar - was showing above the default.png.

    The solution to this problem involved making the default.png image 320x480 as opposed to its original 640x960. The exact solution was to make a default@2x.png using the larger dimensions.

    0 讨论(0)
  • 2021-02-06 00:48

    I have seen this on Jailbroken devices using IOS 2.1 with an older version of Cydia. In that instance, once Cydia was updated, the info.plist + ...statusBarHidden = YES method worked.

    Alternatively see if [application setStatusBarStyle: ...] helps.

    -isdi-

    0 讨论(0)
  • 2021-02-06 00:49

    in the info.plist there's also a key called "Status bar is initially hidden" that needs to be checked on. It will hide the status bar while loading the default.png

    0 讨论(0)
  • 2021-02-06 00:59

    It's easier than that. At least in Xcode 4 you can simply add an entry "Status bar is initially hidden" to the plist and set its value to YES.

    status bar entry in plist

    0 讨论(0)
提交回复
热议问题