Storyboard-set iOS 7 Status Bar not shown in right style

一曲冷凌霜 提交于 2019-12-10 18:01:45

问题


I have two Scenes in a Storyboard; a dark one and a light one.
Set to Default in the Simulated metrics' Status Bar section, the light scene's bar is dark and works correctly. The dark scene's is set the same way to Light Content style but it doesn't change.
No mention of the bar anywhere in the code itself, what's wrong?


回答1:


The simulated metrics is only for XCode. You need to set this for the view in the views viewcontroller.

UIViewController:preferredStatusBarStyle

StackoverFlow question covering the same



来源:https://stackoverflow.com/questions/20035792/storyboard-set-ios-7-status-bar-not-shown-in-right-style

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!