Why is status bar showing between default and main.lua?

I have the same problem, i.e. when the default.png is loaded the statusbar is not shown.   Despite the first line in my app being…

 

 

display.setStatusBar( display.HiddenStatusBar)

 

the status bar is shown briefly between the default image being shown and the app starting.   Why is that?   It’s ANNOYING!

 

I’ve also got this in my settings.build file

 

settings = 

{

 

        iphone =

        {

                    

                plist=

                {

                       UIStatusBarHidden = true,

                       UIApplicationExitsOnSuspend = true,                                

                       UIPrerenderedIcon = true,

                },

        },

}

Hi there,

How soon in your main.lua file do you have display.setStatusBar( display.HiddenStatusBar)?  Do you put it in the main body of main.lua, or within a function (such as a callback to the application start event, or some other function)?  I’d suggest putting it directly in your main.lua, if you’re not already, else I think it’s possible that it might take a frame or two before the code gets executed, which is why you’d be seeing it briefly on screen.

  • Andrew

Hi, thanks for the reply, as I said the 1st line in my app, i.e. the 1st line in the main.lua is 

display.setStatusBar( display.HiddenStatusBar)

 

Oddly on my iPhone the 1st time the app is run all is good.   However if I hit the BIG button and then go back in the problem occurs.   Weird.

Ah, sorry, I missed the part where you said it was on the first line.

That does sound strange.  I guess the best next step would be to see if you can get the same behavior to happen in a simple test project, to isolate what might be causing it.  I don’t experience that issue in my project.

  • Andrew

Hi there,

How soon in your main.lua file do you have display.setStatusBar( display.HiddenStatusBar)?  Do you put it in the main body of main.lua, or within a function (such as a callback to the application start event, or some other function)?  I’d suggest putting it directly in your main.lua, if you’re not already, else I think it’s possible that it might take a frame or two before the code gets executed, which is why you’d be seeing it briefly on screen.

  • Andrew

Hi, thanks for the reply, as I said the 1st line in my app, i.e. the 1st line in the main.lua is 

display.setStatusBar( display.HiddenStatusBar)

 

Oddly on my iPhone the 1st time the app is run all is good.   However if I hit the BIG button and then go back in the problem occurs.   Weird.

Ah, sorry, I missed the part where you said it was on the first line.

That does sound strange.  I guess the best next step would be to see if you can get the same behavior to happen in a simple test project, to isolate what might be causing it.  I don’t experience that issue in my project.

  • Andrew