Doubt in NSColor

Discussion in 'iOS Programming' started by iphonejudy, Jun 5, 2009.

  1. iphonejudy macrumors 6502

    iphonejudy

    Joined:
    Sep 12, 2008
    #1
    Code:
    NSColor * pixelsColor = [Bitmapimage colorAtX: pt.x y: pt.y];

    I got error in NSColor

    "NSColor undeclared (first use in this function)"
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    You are on the iPhone. Why are you not using UIColor?
     
  3. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #3
    If you look up a class in the documentation and it mentions "AppKit" then that means you can't use it on the iPhone.
     

Share This Page