Hide statusbar using info.plist in any app
Asked Answered
S

3

9

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?

Salyers answered 1/1, 2014 at 4:54 Comment(2)
Check this one: #18060203Distinguishing
This is common question now a Days you have to do some google or RND regarding this issue.Spherule
M
7
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:NO];

OR

enter image description here

Or

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

Materials answered 1/1, 2014 at 5:15 Comment(1)
I don't have access to the headers or any of the source, trying to do this on Google Chrome appSalyers
F
6

Try this.

add this key into info.plist file

View controller-based status bar appearance

set value for this to:- No

Fire answered 1/1, 2014 at 4:59 Comment(3)
Wouldn't that be the same as UIViewControllerBasedStatusBarAppearance set to no? I've already got that in the info.plistSalyers
Yep, as I mentioned in my first postSalyers
then u have to hide it programatically.Fire
D
5

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

Disjuncture answered 18/1, 2017 at 20:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.