Tunyk Pavel
Tunyk Pavel

Reputation: 2493

Where to put [[UIApplication sharedApplication] setStatusBarHidden:YES];?

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?

Upvotes: 0

Views: 1252

Answers (2)

Jensen2k
Jensen2k

Reputation: 8408

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

Upvotes: 0

Jasarien
Jasarien

Reputation: 58468

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.

Upvotes: 7

Related Questions