带有自定义颜色的Tabbar [英] Tabbar with custom colors

查看:191
本文介绍了带有自定义颜色的Tabbar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个Tabbar应用程序。我基本的必要性是我希望标签栏图标的颜色是红色而不是默认的蓝色。(即所选标签图标必须是红色而不是默认颜色苹果提供的蓝色。我不想改变标签栏的颜色。我希望它是默认的黑色。希望这个问题有道理。



我希望标签栏看起来像这样





谢谢。

解决方案

正如nicktmro所说,你必须自定义一切。



检查前一个答案:
更改UITabBar的色调/背景颜色
(检查这一个的几个答案,后面的答案修复了已接受答案的问题)



'p>而这个博客帖子:
iPhone TabBar自定义背景图片






已添加



这是另一个看起来干净简单的:



UITabBar中的自定义颜色



请务必阅读答案的评论。


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

Thanks.

解决方案

As nicktmro noted, you have to customize everything.

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)

And this blog post: iPhone TabBar Custom Background Image


ADDED

Here's another one that looks clean and easy:

Custom colors in UITabBar

Be sure to read the comment on the answer.

这篇关于带有自定义颜色的Tabbar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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