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?

2

3 Answers 3

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

OR

enter image description here

Or

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

1
  • I don't have access to the headers or any of the source, trying to do this on Google Chrome app
    – jamzsabb
    Jan 1, 2014 at 19:07
6

Try this.

add this key into info.plist file

View controller-based status bar appearance

set value for this to:- No

3
  • 1
    Wouldn't that be the same as UIViewControllerBasedStatusBarAppearance set to no? I've already got that in the info.plist
    – jamzsabb
    Jan 1, 2014 at 5:05
  • Yep, as I mentioned in my first post
    – jamzsabb
    Jan 1, 2014 at 5:37
  • then u have to hide it programatically. Jan 1, 2014 at 5:41
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.