Hide statusbar using info.plist in any app

2019-02-23 08:38发布

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?

3条回答
三岁会撩人
2楼-- · 2019-02-23 09:09

Try this.

add this key into info.plist file

View controller-based status bar appearance

set value for this to:- No

查看更多
萌系小妹纸
3楼-- · 2019-02-23 09:11

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

查看更多
一纸荒年 Trace。
4楼-- · 2019-02-23 09:27
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:NO];

OR

enter image description here

Or

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

查看更多
登录 后发表回答