UIStatusBarStyle changes after displaying a UIWindow over UIStatusBar
问题 I am displaying a UIWindow over the UIStatusBar , by default the UIStatusBarStyle is set to UIStatusBarStyleLightContent , but when I display the UIWindow the UIStatusBarStyle switches to the black style. 回答1: I came across this topic while struggling with the same problem. What you have to do is create a new view controller and set it as the root view controller of your UIWindow (that is the UIWindow that you are displaying over your other view). Then, in this new view controller implement