Setting each tab on TabBarController a different colour when selected?

霸气de小男生 提交于 2019-12-25 09:10:01

问题


I have a tab bar and want to set tints that are indipendent based on selected tab, I know I can tint them so they all change to 1 new color, however I havent been able to get them to each take on their own colour when selected. Is there a way to do this?

currently have this, where the tint is just white, i want to tint each one indipendently


回答1:


Select your Tabbar item and in attribute inspector set both Selected Image and Image for bar item check below Image for reference.



来源:https://stackoverflow.com/questions/40742285/setting-each-tab-on-tabbarcontroller-a-different-colour-when-selected

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!