UIColor+ColorWithHex is a category method for iOS UIColor, inspired by the lack of hexadecimal colour integration of iOS.
UIColor+ColorWithHex Download Link
Sample Usage:
[[self view] setBackgroundColor: [UIColor colorWithHex: 0xff0000]];
UIColor *randomColor = [UIColor randomColor];
Methods:
+ (UIColor *)colorWithHex:(UInt32)hexadecimal;
+ (UIColor *)colorWithHexString:(NSString *)hexadecimal;
+ (UIColor *)colorWithAlphaHex:(UInt32)hexadecimal;
+ (UIColor *)colorWithAlphaHexString:(NSString *)hexadecimal;
+ (NSString *)hexStringFromColor: (UIColor *)color;
+ (UIColor *)randomColor;
// ObjC (manual hex conversion to RGB)
+ (UIColor *)colorWithHexa:(NSString *)hexadecimal;