Game Development Community

Hide iPod touch status bar

by Komar "FLy" Sergey · in iTorque 2D · 06/15/2009 (6:06 am) · 23 replies

Hello, does anybody know, how can I hide iPod touch status bar, I found only "$pref::iPhone::StatusBarHidden (true/false)", but it doesnt work. Here is a screenshoot:
img-fotki.yandex.ru/get/3607/flymyxa.0/0_12f69_747d0f97_L
Page «Previous 1 2
#1
06/15/2009 (6:26 am)
Specify it off in your plist. Double-click the appropriate plist and add the boolean "UIStatusBarHidden", set to true.
#2
06/15/2009 (7:14 am)
or just set it in the preferences.
#3
06/15/2009 (9:00 am)
Can you please explain me step-by-step how to do it?
#4
06/15/2009 (9:45 am)
In the editor, go to Edit > Preferences > iPhone Options > click "Hide Status Bar." You'll also see other options that may be useful to customize for your iPhone game, such as turning on/off network, or using multitouch, etc.
#5
06/15/2009 (9:53 am)
Oh, in TGB editor! Shame on me, I am looking in Xcode... Big thanks!
#6
06/15/2009 (10:56 am)
I believe there is also a setting in your Info.plist file that you can make use of.

Add "UIStatusBarHidden" and make boolean value 'true.'

Also, "UIPrerenderedIcon" with boolean value 'true' will stop your iPhone/iPod touch from making that curved highlight on top of your icon. That always helps if you're designing something nice for your app and you don't want the 'shine' to mess it up.
#7
06/28/2009 (3:44 pm)
It doesn't work for me.

When I ever do manage to get a game to compile on device it is not there for the default.png splah but comes back again for the game.

It is definitely ticked when I build

Also the 1.2 build doesn't seem to include a plist file. But if I go to the properties an open it as a plist and add the uistatusbarhidden line with a bolean value, then save it, it still doesn't work

Anyone else get this?
#8
06/28/2009 (5:23 pm)
the 1.2 does include the plist. its just not listed in xcode you have to go to the project folder.

altering the plist won't help. the settings are defining.
ensure that after you alter ANYTHING in the editor to run the tgbgame within your folder (built with the same compiler flags as your iphone project) to ensure that the dso's have been recompiled.

and then delete the app file in the build folder to ensure its beeing relinked
#9
07/04/2009 (6:50 pm)
I'm having a similar issue. The iPhone status bar is present for about 2-3 seconds while the app loads then disappears. I've set the status bar to hidden in iTGB as noted in the posts above, yet the status bar continues to be there on launch.

How can I prevent it from showing at all? Thanks! B.
#10
07/04/2009 (9:39 pm)
Ya, weird. Ever since I've been compiling with the optimizations, I can't get rid of the status bar completely. It disappears when the splash zooms in, shows up, then disappears again.

I've set it in the editor, added the setting in all the info*.plist files, and still it manages to peek out for a second or two.
#11
07/05/2009 (5:22 am)
It only shows up for me at the start before the actual app takes control and never again post that point.
#12
07/06/2009 (3:21 am)
Its probably because of some kind of network activity? I have found that the networking will pop down the status bar.
#13
09/23/2009 (5:59 am)
Quote:I've set it in the editor, added the setting in all the info*.plist files, and still it manages to peek out for a second or two.

I also tried every setting but the status bar still appears for about one second...

I checked Buggle ( http://www.topmeadow.com/iPhone/buggle/ ) and it seems that even Kevin Ryan did not succeed... ;)
#14
09/23/2009 (12:12 pm)
It shows up until the engine has booted enough to disable it. If you want it disabled immediately after launch you will need to go into the source code and manually add a line to disable it inside the startup Objective C method.
#15
12/11/2009 (2:06 pm)
in file IPhoneMain.mm at line 22, there is this code
platState.application.statusBarHidden = NO;//hide to start, and then reset it later based upon $Pref::iPhone::StatusBarType
Change it to YES
Because the app loads a while, until it gets active and disables the statusbar according to your preferences, this line causes the appearing of status bar during this loadtime.
#16
12/11/2009 (2:56 pm)
Nice, SketchGames.
#17
12/11/2009 (3:22 pm)
You can make it not appear in the first place with the tip I posted ;
#18
12/12/2009 (6:01 pm)
Sorry, but the "UIStatusBarHidden" does not completely work because of that particular line of code, which i have posted, at least not in my case. Using "UIStatusBarHidden" indeed hides the status bar at the start of my application, but a short time after, during initialization/loading, the statusbar appears again and disappears only as the initialization finishes - where the preferences set in the iTGB 1.2 are applied. That's why i had to modify the code. So finally i had to use all of them:
1. UIStatusBarHidden true
as Ronny Bangsund suggested
2. platState.application.statusBarHidden = YES;
3. iTGB > Edit > Preferences > iPhone Options > click "Hide Status Bar."
as Marc Schaerer / BeyoundtheTech suggested
#19
12/12/2009 (6:52 pm)
Yeah, it's not the complete solution. Didn't say it was ;)
But it makes it so the OS does not show the bar from the moment it starts loading the executable, which looks smoother.
#20
04/30/2010 (2:22 pm)
Excuse the dumb question, but in which .plist file does the line: UIStatusBarHidden true appear? i can't find it.
My target Device 3.0

Page «Previous 1 2