[Solved][Iphone] how to hide status bar

Problems building or running the engine, queries about how to use features etc.
Post Reply
TaeHyungKim
Kobold
Posts: 31
Joined: Thu Jun 03, 2010 4:03 pm
Location: Korea

[Solved][Iphone] how to hide status bar

Post by TaeHyungKim »

hi, i was coded by reference sample browser's framework
when executed at iphone, Default.png is loaded for splash screen
i want hide status bar when splash screen is seeing
so i added property "Status Bar is initially hidden" in info.plist and set true.
but status bar is not hidden when splash screen is seeing..

how to hide status bar when splash screen is seeing.. help me :)
Last edited by TaeHyungKim on Thu Aug 26, 2010 10:50 pm, edited 1 time in total.
User avatar
DanielSefton
Ogre Magi
Posts: 1235
Joined: Fri Oct 26, 2007 12:36 am
Location: Mountain View, CA
x 10
Contact:

Re: [Iphone] how to hide status bar when splash screen is se

Post by DanielSefton »

Well that's odd, it works for me.

Anyway, to do it programatically, call this in your applicationDidFinishLaunching method:

Code: Select all

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
TaeHyungKim
Kobold
Posts: 31
Joined: Thu Jun 03, 2010 4:03 pm
Location: Korea

Re: [Iphone] how to hide status bar when splash screen is se

Post by TaeHyungKim »

ok .. i have coded [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]; in applicationDidFinishLaunching method.
but my question is how to hide status bar when splash screen is seeing.
when rendering started, status bar hidden well.
before applicationDidFinishLaunching method called, splash screen displayed.

i have attached screenshot for understand my question .. top status bar is seeing when splash screen displayed.
Attachments
2010-08-26_0808.png
User avatar
DanielSefton
Ogre Magi
Posts: 1235
Joined: Fri Oct 26, 2007 12:36 am
Location: Mountain View, CA
x 10
Contact:

Re: [Iphone] how to hide status bar when splash screen is se

Post by DanielSefton »

Well setting "Status bar is initially hidden" in your info.plist should work...

1) Go to Target -> Get Info -> Build and check that the "Info.plist File" points to your plist file.
2) Check if your info.plist file is included in your project in a group.
3) Do Build -> Clean All Targets.
4) Compile and try again.
TaeHyungKim
Kobold
Posts: 31
Joined: Thu Jun 03, 2010 4:03 pm
Location: Korea

Re: [Iphone] how to hide status bar when splash screen is se

Post by TaeHyungKim »

hm ... I know why this happened
i have downloaded 0gre 1.7 source and iphone dependencies
and make project using cmake
and then , plist file is produced at build/samples/browser/cmakefiles/samplebrowser.dir/info.plist
info.plist open by Property List Editor, View->Property List Type is checked info.plist
I modified type Info.plist to Iphone Info.plist , then status bar hidden is successfully applied.. :)
Post Reply