UIColor+AWKit.h

Includes:
<UIKit/UIKit.h>

Introduction

Use the links in the table of contents to the left to access the documentation.



Methods

+colorWithHex:alpha:
+colorWithHexString:alpha:
+randomColorWithAlpha:

colorWithHex:alpha:


+ (UIColor*)colorWithHex:(UInt32)hex alpha:(CGFloat)alpha;  
Parameters
hex

A hex integer to convert to a specific RGB color, eg. 0xffffff

Return Value

A UIColor with the color specified by a hex value

Discussion

Will return a UIColor from a hex value (Eg. 0xffffff == RGB(255,255,255) <==> White)


colorWithHexString:alpha:


+ (UIColor*)colorWithHexString:(NSString*)hex alpha:(CGFloat)alpha;  
Parameters
hex

A hex string to convert to a specific RGB color

Return Value

A UIColor with the color specified by a hex value

Discussion

Will return a UIColor from a hex value (Eg. @"#ffffff" == RGB(255,255,255) <==> White)


randomColorWithAlpha:


+ (UIColor*)randomColorWithAlpha:(CGFloat)alpha;  
Parameters
alpha

Alpha between 0.0 and 1.0.

Return Value

A random UIColor with specified alpha

Discussion

Will return a random UIColor with a specified alpha (just for fun!)