Making color from RGB values in xcode

XCode takes RGB values in range [0,1] so in order to make a color from RGB values which you picked from any image editing tool you have to divide them by 255.

e.g.  [UIColor colorWithRed:90 green:45 blue:10 alpha:1] wont work

use [UIColor colorWithRed:(90/255) green:(45/255) blue:(10/255) alpha:1];

A pat on the back !!