Hide statusbar using info.plist in any app

南笙酒味 提交于 2019-12-01 03:40:36

问题


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?


回答1:


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

OR

Or

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




回答2:


Try this.

add this key into info.plist file

View controller-based status bar appearance

set value for this to:- No




回答3:


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



来源:https://stackoverflow.com/questions/20865639/hide-statusbar-using-info-plist-in-any-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!