hide status bar swift 4

后端 未结 15 2031
无人及你
无人及你 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:36

    Need to write the code in the container view controller if it is a child view controller

         override var prefersStatusBarHidden: Bool {
          return true
         }
    

提交回复
热议问题