How to have individual selected image color for TabBarItem

后端 未结 1 1861
野趣味
野趣味 2021-01-26 11:55

I\'ve been through most to all of these SO Q/A and none of which worked; many refers to older version of xcode.

I\'m using Xcode 8. I have a TabBarItem with a red image.

相关标签:
1条回答
  • 2021-01-26 12:36

    When I run the app, it's blue -- it should be red, why it's blue?

    That's because blue is the tint color. If you want to use the red of the original image, and not the tint color, turn the image into a rendered image with rendering mode alwaysOriginal. If this is supposed to be the color only when the tab bar item is selected, supply it as the selectedImage.

    0 讨论(0)
提交回复
热议问题