1/13/2009

Hide the Status Bar

Here's a quick one. If you want to get rid of the status bar at the top of the screen to make more room for your content, head into your AppDelegate.m file, find the applicationDidFinishLaunching method and simply add in this line:

[[UIApplication sharedApplication] setStatusBarHidden:YES];

Presto-chango, the status bar will magically disappear.

PRO-TIP: If you find that after you run your application that your content kind of pops up on the screen to fill in the space, leaving an empty space at the bottom, select your view in Interface Builder and go to the measurements tab. Make sure the sizing height is set to 480 and not 460.

1 comment:

  1. yes but you can't touch this area. No touch is detected. the status bar is invisible but still here.

    ReplyDelete