Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide statusbar using info.plist in any app

To clarify, I'm not trying to do this on my own app, so I don't have access to the source code. I am trying to edit info.plist or any other files in the installed .app file on my device to remove the status bar from an app, namely Google Chrome

I'm trying to hide the statusbar on Google Chrome. I added UIViewControllerBasedStatusBarAppearance = false and UIStatusBarHidden = true to info.plist, but all that got me was a grey bar where the status bar used to be. So close!

Are there any other ways to force hide the status bar in Chrome or any other app on iOS 7?

like image 929
jamzsabb Avatar asked Jan 01 '14 04:01

jamzsabb


People also ask

How do you hide the status bar on ios 14?

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. The status bar will only be hidden on your home screen, so you'll still see it while using apps.

How do I turn off status bar on Iphone?

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

How do I hide status bar in SwiftUI?

Make sure your initial SwiftUI View is a Navigation view where you hide the status bar. Then if you navigate to a tab bar view or any subsequent views the status bar will be hidden.


3 Answers

[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:NO];

OR

enter image description here

Or

try - (BOOL)prefersStatusBarHidden { return YES; } in all of your view controllers.

like image 146
codercat Avatar answered Oct 14 '22 13:10

codercat


Try this.

add this key into info.plist file

View controller-based status bar appearance

set value for this to:- No

like image 41
Aklesh Rathaur Avatar answered Oct 14 '22 14:10

Aklesh Rathaur


I added the following to my info.plist:

Status bar is initially hidden with value YES

I also have View controller-based status bar appearance with value NO

Screenshot showing info.plist properties

like image 44
Jacob F. Davis C-CISO Avatar answered Oct 14 '22 14:10

Jacob F. Davis C-CISO