Hide statusbar using info.plist in any app

后端 未结 3 1823
小蘑菇
小蘑菇 2021-01-12 06:59

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 fil

相关标签:
3条回答
  • [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:NO];
    

    OR

    enter image description here

    Or

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

    0 讨论(0)
  • 2021-01-12 07:40

    Try this.

    add this key into info.plist file

    View controller-based status bar appearance

    set value for this to:- No

    0 讨论(0)
  • 2021-01-12 07:55

    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

    0 讨论(0)
提交回复
热议问题