hide status bar swift 4

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

    Use the following code UIApplication.shared.isStatusBarHidden = true

    this is the only thing that I found that is working in iOS11. you can write in didFinishLaunchingWithOptions or in 'viewWillAppear' of you BaseViewController Enjoy.

提交回复
热议问题