0

I need some help. I want that my app runs without status bar.

[[UIApplication sharedApplication] setStatusBarHidden:YES];

I put this line into appDelegate in

- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

Maybe exist better place?

Tunyk Pavel
  • 2,473
  • 6
  • 31
  • 46

2 Answers2

7

You can enter the key: UIStatusBarHidden in your info plist, make it a boolean value and set it to YES. Then your app will start without the status bar.

Jasarien
  • 58,279
  • 31
  • 157
  • 188
0

You can set it anywhere you want :-) Preferly where you want to hide it :)

Jensen2k
  • 8,388
  • 1
  • 14
  • 13
  • Yes, but I want that status bar was hidden during all application lifecycle, previous answer - exactly what I searching for. Thank you for your answer :) – Tunyk Pavel Mar 03 '11 at 13:09