Is kCGColorSpaceGenericRGB deprecated?

Discussion in 'iOS Programming' started by chaonic, Jul 24, 2008.

  1. chaonic macrumors newbie

    Feb 22, 2008
    I'm trying to get a gradient example working that I found here:

    Using a CGGradient Object

    But this line...

     myColorspace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);
    ... is throwing errors. Says that "kCGColorSpaceGenericRGB" is deprecated. Does anyone know what I should be using instead?


Share This Page