且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在iOS 6上设置状态栏色调?

更新时间:2023-01-05 19:21:43

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



如何在iOS 6上设置状态栏色调?



更新



有几个人对这个答案感到困惑。只是为了澄清,您不能将状态栏色调设置为您想要的任何颜色。上面描述的只是在启动期间更改状态栏色调,并选择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).