简体   繁体   中英

Change the color of selected tab bar icon in swift

I found out how to change the color of the text of the tab bar item when it is selected, but I am wondering how to do the same for the icon. I can't seem to find the solution on SO for swift, and that works. My icon has uploaded correctly, and when deselected is gray, but when it is selected, it goes to the default blue color. I would like to change this to a certain red. Where do I do this, and how do I do it?

Thank you so much!

此处已经回答了,但总而言之,单击要更改的选项卡栏项目,然后可以在情节提要中添加新的运行时属性,当选中时,该属性将更改整个项目(图像和文本)。

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