Just getting started with my first iPhone app. My app will be full screen, but I am having trouble finding the document that explains how to change the status bar properties. Anyone have any pointers?
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]
should hide the status bar. Is that what you want?
edit: You could also add the following to Info.plist
:
<key>UIStatusBarHidden</key>
<true />
The status bar APIs are part of the UIApplication class. Start there.
Using Snow Leopard and the XCode 3.2, you simply edit the Apps Info.plist.
Add 2 rows:
Right click the open plist and add a row and select "Status bar is initially hidden" from the drop down list. Check the checkbox it provides in the column to the right.
Add another row and select "Status Bar Style" from the drop down list. In the column to the right type in UIStatusBarHidden
That works for me. I haven't experimented yet with changing the status bar view state at runtime though, say for example if the battery gets low.
And I'm not entirely sure that both values are needed if you add the second row's value.
// :)