UIApplication.sharedApplication().setStatusBarStyle() deprecated in iOS 9

前端 未结 9 681
野的像风
野的像风 2021-02-01 13:34

I have been using

UIApplication.sharedApplication().setStatusBarStyle()

In my appDelegate and it has worked fine, but since iOS 9, this method

9条回答
  •  深忆病人
    2021-02-01 14:33

    This is the new way in AppDelegate:

    UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: true)
    

提交回复
热议问题