Featured Apps

Collaged

Create Photo Collages
Easily create photo collages to share with friends and family

Sleepify

Music Alarm Clock
Simple, stylist and intuitive music alarm clock

MyMemes

Create Your Own Memes
Add captions to the most popular meme images or your own photos

Convert RGB Values into UIColor

16 October 2013

Turning RGB Values into a useable UIColor is very simple. This one line function is all that you need.

#define RGB(R,G,B) [UIColor colorWithRed:R/255.0f 
    green:G/255.0f blue:B/255.0f alpha:1.0f]
Now, when you need to convert an RGB value, just do something like this.
RGB(100, 120, 140);