Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hiding status bar iOS 7

Tags:

iphone

ios7

Can't hide status bar on view controller on ios 7 device.

Already tried setting through plist file and also in Appcontroller.mm but still i doesn't hide the status bar

[[UIApplication sharedApplication] setStatusBarHidden:YES];//Doesn't help 
like image 429
Dhaval Avatar asked Sep 24 '13 01:09

Dhaval


People also ask

How do I hide my status bar on iPhone 7?

To completely hide it on the home screen, open up an app, such as Settings, and wait about three to four seconds. Press the home button again, and the status bar will be completely gone.

How do I hide the status bar on my iPhone?

Go to Your info. plist file. Add a key called “View controller-based status bar appearance” and set its value to NO.

What is the iOS status bar?

A status bar appears along the upper edge of the screen and displays information about the device's current state, like the time, cellular carrier, and battery level.

Why is my status bar not showing on iPhone?

It's possible that your iPhone status bar keeps disappearing because of an issue with the version of iOS running on your iPhone. Software glitches like this are typically fixed in subsequent software updates, so I recommend looking for an iOS update by going to Settings -> General -> Software Update.


1 Answers

Go to info.plist and add two attributes if not present. set "Status bar is initially hidden" to YES and set UIViewControllerBasedStatusBarAppearance to NO. This will hide status bar for your app.

like image 169
tausun Avatar answered Sep 20 '22 17:09

tausun