如何在iOS 6上设置状态栏色调? [英] How to set status bar tint color on iOS 6?

查看:76
本文介绍了如何在iOS 6上设置状态栏色调?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如Apple在2012年9月的主题演讲中所示,状态栏色调颜色因iOS 6中的应用而异。例如,Safari和地图使用黑色状态栏,而Mail则为其添加蓝色色调。



'p>是否有可能设置色调颜色,或者至少它强制黑?

解决方案

你可以从像Comradsky何况还是在Xcode 4.5,他们在项目总结添加了一个选项,它的plist中做到这一点。



在这里输入的图像描述



更新



有几个人对这个答案感到困惑。只是为了澄清,您不能将状态栏色调设置为您想要的任何颜色。上面描述的只是在启动期间更改状态栏色调,并选择iOS 6默认状态栏颜色行为(从导航栏中选择底部像素行的颜色)。


As shown on Apple's September 2012 keynote, the status bar tint color varies between apps in iOS 6. For instance, Safari and Maps use a black status bar whereas Mail adds a blue tint to it.

Is it possible to set that tint color, or at least force it to black?

解决方案

You can do it from the plist like Comradsky mention or in xcode 4.5, they added an option for it in the project summary.

Update:

several people were confused by this answer. Just to clarify, you cannot set the status bar tint to any color you want. What is described above is only to change the status bar tint during launch and choose the iOS 6 default status bar color behavior (which picks the color of the bottom row of pixels from your navigation bar).

这篇关于如何在iOS 6上设置状态栏色调?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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