标签栏项目色调颜色 [英] Tab bar item tint color
本文介绍了标签栏项目色调颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在iOS 7中,我一直在开发一个使用UITabBarController的应用程序,我注意到标签栏项目保持灰色,即使我更改了标签栏的色调颜色。有没有办法改变未选择的标签栏项目的颜色?
In iOS 7, I been developing an app that uses the UITabBarController and I noticed that the tab bar items stay gray even tho I change the tint color of the tab bar. Is there any way to change the color of non-selected tab bar items?
推荐答案
要做到这一点::遵循一个简单的方法..
To do this:: follow a simple approach..
-
根据需要更改tintColor
Change tintColor as you want
为未选择的项目添加一组新图像并以原始模式渲染。
Add a new set of images for unselected items and render them in original mode.
有关详细信息,请仔细阅读链接
For more info, read through this link
这篇关于标签栏项目色调颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文