tags:

views:

232

answers:

2

New view based project in XCode Go to main.xib and view.xib respectively In each case set status bar to none in attributes section for view

Not sure why it still shows both on simulator and on platform?

Have looked for something in code, but don't see what else is calling this?

Anybody know how to turn the status bar off?

Thanks // :)

+1  A: 

The status bar off in interface builder does not make it go away, use UIApplications - (void)setStatusBarHidden:(BOOL)hidden animated:(BOOL)animated here http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIApplication%5FClass/Reference/Reference.html#//apple%5Fref/occ/instm/UIApplication/setStatusBarHidden%3Aanimated:

Daniel
+3  A: 

Figured it out...

Using Snow Leopard and the XCode 3.2, you simply edit the Apps Info.plist.

Right click the open Info.plist and add a row.

Select "Status Bar Style" from the drop down list. In the column to the right type in UIStatusBarHidden.

To affect this more dynamically this can be used instead:

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]; should hide the status bar.

// :)

Spanky