Create UIColor From RGB Values


/ Published in: Objective C
Save to your folder(s)

Setup a colour. Values are between 0 and 1 so need to do a little bit of maths instead of just boshing them in from Photoshop


Copy this code and paste it in your HTML
  1. self.theColour = [[UIColor alloc] initWithRed:(210/255.f) green:(121/255.f) blue:(156/255.f) alpha:1];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.