ios developer
ios developer

Reputation: 3483

Change the color of UIIMAGE +UIKIT+iphone

I want to change the color of the UIIMAGE on button click event.

Example:- I had UIIMAGE of white color or grey color Where if i click the yellow(button) then the shape color changes to yellow. IF i click the red color then color change to red. If i click on black then color change to black.

Image like this:- enter image description here I had refer this link.And get the code from github.It is working properly.

But the problem is when i changes the color from white to red.It is done properly. But then red to yellow.Then it is showing me pinking color(Mixture of yellow and red).

Please any one help me. How can i change the color of uiimage.

Thanks in advance

Upvotes: 2

Views: 615

Answers (1)

objectivecdeveloper
objectivecdeveloper

Reputation: 1050

Change the image color to something lighter like white. It will append new color properly.

Upvotes: 2

Related Questions