Search code examples
iphoneobjective-ciosuibuttonuicolor

Coloring OBShapedButton's(Custom Shaped Buttons) Image and Set it Again


I have some OBShaped/IrregularShaped custom buttons on the xib. I am setting the images of these buttons. Now I want to take the image of each button and color is according to some data and set it again. How can I do this?

I have tried using UIColor, UIImage+Tint.h, UIImage+ProportionalFill.h. But it's taking a lot of memory while coloring the high resolution images.


Solution

  • Finally did it with UIColor, UIImage+Tint.h, UIImage+ProportionalFill.h | :)