I have a UIColor, and I want to use it for the CGContextSetFillColor() method. I tried
The problem is a warning saying
"passing argument 2 of 'CGContextSetFillColor' from incompatible pointer type"
How can I use the UIColor to set my fill color?
PHP:
CGColorRef fillColor = [theColor CGColor];
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColor(context, fillColor);
The problem is a warning saying
"passing argument 2 of 'CGContextSetFillColor' from incompatible pointer type"
How can I use the UIColor to set my fill color?