views:

1550

answers:

4

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 well as in the applicationDidFinishLaunching method in the Application Delegate using:

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];

And the status bar does hide -- only not quick enough. Despite the steps taken above, when the app is launched, the status bar is STILL being displayed for about a second during the displaying of the Default.png default image. This looks tacky, and I want to make sure the status bar does not get displayed at any time during the running of the app.

Many apps I've tried ARE hiding the status bar successfully (doesn't even show during the display of default.png) but I can't figure out how. Anyone deal with this issue before?

+2  A: 

I don't think it is possible. Default.png is shown while your app is loading. The code to hide the status bar doesn't actually get executed until your app is loaded and Default.png is replaced by your UI.

A compromise is to animate hiding of the status bar which would be a nicer and not as "tacky".

freespace
It MUST be possible somehow, as so many other apps on the app store are doing this. Thanks for the suggestion on animating the change though.
RexOnRoids
+3  A: 

UIStatusBarHidden should be set to true.

sroske
I am unsure where the downvotes are coming from. There is no need for a compromise, the original poster was very close to the real solution.As stated in the original question "I did this in both the info.plist file (setting a UIStatusBarHidden to a boolean FALSE)".All you need to do is set the plist property "UIStatusBarHidden" to TRUE instead of FALSE. That will ensure that the status bar is *always* hidden, even when the Default.png is being shown.
sroske
The downvotes are because your proposed solution has nothing to do with the original question.
Kenneth Ballenegger
Erm - OK so now I'm at fault. Didn't even read your comment thoroughly enough. One vote up from me, it seems like you do actually have a solution. You should've put more info in your answer, saying it needs to be a Info.plist key-value pair.
Kenneth Ballenegger
Sorry, in my post I listed UIStatusBarHidden as set to FALSE where it is actually TRUE in my info.plist file. You shouldn't have got a downvote -- Thanks for catching that.
RexOnRoids
Make sure the plist value is <true/> rather than <string>YES</string>, which I've occasionally encountered causing trouble before.
Daniel Dickison
+5  A: 

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.

sam
Hey. I never solved the issue with the status bar but it seemed to correct itself once I adjusted for / installed 3.0. Now there are no problems.
RexOnRoids
+1  A: 

Hi,

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-

ISDi