chaonic
Jul 24, 2008, 02:49 PM
I'm trying to get a gradient example working that I found here:
Using a CGGradient Object (http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_shadings/chapter_9_section_5.html#//apple_ref/doc/uid/TP30001066-CH207-SW4)
But this line...
myColorspace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);
... is throwing errors. Says that "kCGColorSpaceGenericRGB" is deprecated. Does anyone know what I should be using instead?
Ryan
Using a CGGradient Object (http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_shadings/chapter_9_section_5.html#//apple_ref/doc/uid/TP30001066-CH207-SW4)
But this line...
myColorspace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);
... is throwing errors. Says that "kCGColorSpaceGenericRGB" is deprecated. Does anyone know what I should be using instead?
Ryan
