hide status bar swift 4

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

    Just change "Top Space to" constraint of your view from Safe area to Superview. And it will drag your view under the Status bar so there is will be no need to hide it![enter image description here]1

提交回复
热议问题