故事板设置iOS 7状态栏未以正确的方式显示 [英] Storyboard-set iOS 7 Status Bar not shown in right style

查看:179
本文介绍了故事板设置iOS 7状态栏未以正确的方式显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在故事板中有两个场景;一个黑暗的和一个浅的。

在模拟指标的状态栏部分设置为默认,灯光场景的栏很暗并且工作正常。黑暗场景的设置方式与 Light Content 相同,但不会改变。

在代码本身的任何地方都没有提到条形码,出了什么问题?

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?

推荐答案

模拟指标仅适用于XCode。您需要在视图viewcontroller中为视图设置此项。

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

UIViewController:preferredStatusBarStyle

StackoverFlow问题覆盖相同的

这篇关于故事板设置iOS 7状态栏未以正确的方式显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆