简体   繁体   中英

Set selected tab bar item tint?

I am aware there are similar answers on this topic, but I cant seem to come to any conclusion. I'm using IOS 8 and a tab bar created in app delegate. Is there a way to set the selected tab bar item to a certain colour. preferably without using an image. id尽可能复制此内容

[[UITabBar appearance] setTintColor:[UIColor myBlueishColor]];
[[UITabBar appearance] setSelectedImageTintColor:[UIColor myBlueishColor]];

You may find more related information here: http://jslim.net/blog/2014/05/05/ios-customize-uitabbar-appearance/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM