Preferred status bar style of view controller is ignored when in navigation controller
问题 I'm writing an iOS App with multiple views. I've set the App to use ViewController-based status bar style, which allows me to use the following code override var preferredStatusBarStyle: UIStatusBarStyle { return .lightContent } That worked like expected. But then I've embedded the views in a navigation controller and connected a BarButtonItem with a showSegue. Since then the ViewController of the view switched to ignores the style settings and shows the default black status bar. 回答1: When