Is kCGColorSpaceGenericRGB deprecated?

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

  1. macrumors newbie

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

    Using a CGGradient Object

    But this line...

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

    Ryan
     

Share This Page