我想创建一个标签栏应用程序.我的基本要求是我希望标签栏图标的颜色是红色而不是默认的蓝色.(即所选标签图标必须是红色而不是默认颜色苹果提供的蓝色).我不想改变标签栏的颜色.我希望它是默认的黑色.希望这个问题有意义.
I want to create a Tabbar application.My basic necessity is that i want the color of tab bar icons to be red instead of the default blue color.(i.e the selected tab icon has to be of red color instead of the default blue color provided by apple).I dont want the color of the tab bar to be changed.I want it to be of the default black color.Hope the question makes sense.
我希望标签栏看起来像这样
I want the tab bar to look something like this
谢谢.
正如 nicktmro 所说,您必须自定义所有内容.
As nicktmro noted, you have to customize everything.
检查这个先前的答案:更改UITabBar的色调/背景颜色(检查这个答案的几个答案,稍后的答案修复了已接受答案的问题)
Check this previous answer: Changing Tint / Background color of UITabBar (check a couple of answers on this one, a later answer fixes problems with the accepted answer)
还有这篇博文:iPhone TabBar 自定义背景图片
添加
这是另一个看起来干净简单的:
Here's another one that looks clean and easy:
UITabBar 中的自定义颜色
请务必阅读对答案的评论.
Be sure to read the comment on the answer.
这篇关于带有自定义颜色的标签栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!