setStatusBarHidden deprecated, but only thing that works

后端 未结 5 657
野的像风
野的像风 2021-02-05 18:22

I\'ve tried all the solutions I can find including those in: setStatusBarHidden is deprecated in iOS 9.0 but none of them work with my application.

It is a simple, single

5条回答
  •  悲&欢浪女
    2021-02-05 18:26

    you can use

    application.statusBarHidden=YES; 
    

    in AppDelegate.m

    didFinishLaunchingWithOptions
    

提交回复
热议问题