hide status bar swift 4

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

    Try setting "View controller-based status bar appearance" flag in Info.plist to YES. This will force app to call prefersStatusBarHidden: Bool property on every view controller.

提交回复
热议问题