Posted By

saturngod on 10/06/10


Tagged

iPhoneSDK


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

bobbym245
wpellis
cnathan


UIColor With RGB Number


 / Published in: Objective C
 

  1. //just divide by 255.0
  2. c2.textColor=[[UIColor alloc] initWithRed:255.0/255.0 green:204.0/255.0 blue:0 alpha:1];

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Ceetix on October 6, 2010

I knew this code but sometimes it doesn't work and I don't know why ...

You need to login to post a comment.