Search code examples
iosswiftsegment

How can i set segment in image color for ios?


I need to set a black color image in segment 0 ... but the color always follows tint color... like this enter image description here

enter image description here

How to set segment image color?

Thank you for your time.


Solution

  • Starting with your original folder image, call imageWithRenderingMode: with a rendering mode of . AlwaysOriginal. Now the image will be used exactly as is, with no tinting.