I found a category for UIImage for replacing color here
The problem is that the method signature receives an unsigned integer color code:
- (UIImage *)imageByRemovingColorsWithMinColor:(uint)minColor maxColor:(uint)maxColor
How do I get proper unsigned integer value from a UIColor?
I actually want to replace black color with purple.
If you had looked at the sources, you would have found out that they use this unsigned integer value as a hexadecimal color code, where
So you can get such a hexadecimal value from an UIColor object using someting like this:
And then use it like: