Duke Leto
Jan 25, 2009, 10:13 AM
I have a UIColor, and I want to use it for the CGContextSetFillColor() method. I tried
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?
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?
