preferredStatusBarStyle not respecting on iOS 13

前端 未结 2 1552
独厮守ぢ
独厮守ぢ 2021-01-02 12:29

I\'m working in my simulator on a single view app with a dark background. It\'s a UIViewController wrapped in a UINavigationController.

In my view controller I have

2条回答
  •  青春惊慌失措
    2021-01-02 12:53

    The correct answer referenced by @matt is navigationController?.navigationBar.barStyle = .lightContent in viewDidLoad.

提交回复
热议问题