hide status bar swift 4

后端 未结 15 1856
无人及你
无人及你 2021-02-04 01:51

I am trying to hide status bar in one of my UIViewControllers (Swift 4).

  • Firstly, I set View controller-based status bar appearance to

15条回答
  •  太阳男子
    2021-02-04 02:43

    If you are presenting the view controller modally, try

    viewController.modalPresentationCapturesStatusBarAppearance = true
    

提交回复
热议问题