views:

3342

answers:

3

I'm experimenting with the NavBar sample project for iPhone. When I tap on one of the rows in the table in the default view a new view slides in (so far so good). I want to remove the UINavigationBar bar at the top of the new view that slides in. How can I do this?

EDIT: I meant "UINavigationBar". Thanks to everyone who responded!

+1  A: 

[[UIApplication sharedApplication]setHidesStatusBar:YES];

+1  A: 

You can either hide it programmatically by called setHidesStatusBar on your UIApplication (sharedApplication), or you can set it in the plist. Check the CrashLanding's plist.

gilm
+6  A: 

Are you referring to the status bar (where the time and battery status are shown) or the UINavigationBar (where the title and Back buttons are)?

  • To hide the status bar, use [UIApplication sharedApplication].statusBarHidden = YES; in your -applicationDidFinishLaunching: method.

  • To hide the UINavigationBar, you'll want to use the navigationBarHidden property of your UINavigationController.

Ben Gottlieb