开发者

Tabbar with custom colors

开发者 https://www.devze.com 2023-01-27 23:16 出处:网络
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

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 prov开发者_StackOverflow社区ided 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

Tabbar with custom colors

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.


You will have to create your own "tab bar" controller. Unfortunately the "blue" color you are talking about is actually just an alpha level, not a shade of blue.

0

精彩评论

暂无评论...
验证码 换一张
取 消