I created a UIColor object and want to set the colors before painting using CGContextSetRGBStrokeColor. To do this, I need to extract the values from red, green and blue from the UIColor object. How should I do it?
Or maybe the best way to determine the color using some other methods (could not find when I was looking for it) in which I can use the UIColor object to set the color?
Thanks in advance!
/ Niklas
source
share