CGColors?

Discussion in 'iOS Programming' started by kierster, Dec 23, 2008.

  1. macrumors newbie

    Joined:
    Dec 20, 2008
    #1
    what header file is the CGColor object in? I get errors when I try to use them. thanks
     
  2. macrumors member

    neil.b

    Joined:
    Nov 20, 2008
    #2
    CGColor is a read-only property.

    What is it you're trying to do?
     
  3. thread starter macrumors newbie

    Joined:
    Dec 20, 2008
    #3
    ok that would explain it lol.. thanks :p I wanted to make a function that would just have an R, G, B and alpha entered (ie 255, 255, 255, 1.0) and then return a CGColor that would have the proper format (1.0, 1.0, 1.0, 1.0). Not too nessecary, just for convenience :D
     
  4. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #4
    You mean like

    Code:
    CGColorCreateGenericRGB()
    ?
     

Share This Page