Does anyone know how to use colorcodes instead of assigning colors with UIColor

Discussion in 'iOS Programming' started by ulquiorra, Sep 30, 2009.

  1. ulquiorra macrumors member

    Joined:
    Jun 17, 2009
    #1
    Like the title says I want to use a color code instead of doing something like this

    Code:
    lblTemp.textColor = [UIColor colorWithRed: 0 green:0x99/255.0 blue:0 alpha:1.0];
    

    for instance I have the following colorcode #30ae36 how can I use this one instead of doing the above.
     
  2. jeremy.king macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #2
  3. ulquiorra thread starter macrumors member

    Joined:
    Jun 17, 2009

Share This Page