setStatusBarHidden deprecated, but only thing that works

后端 未结 5 667
野的像风
野的像风 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:31

    In my mind, you should change the value of UIViewControllerBasedStatusBarAppearance.

    Set the value file .plist of project a is

    UIViewControllerBasedStatusBarAppearance = NO

    and check in file AppDelegate and set the code

    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

    Hope my solution can be solved your problem.

提交回复
热议问题