Declared in UIColor+TKCategory.h
UIColor+TKCategory.m

Overview

Additional functionality for UIColor.

Class Methods

colorWithHex:

Creates and returns a color object using the specific hex value.

+ (UIColor *)colorWithHex:(unsigned int)hex

Parameters

hex

The hex value that will decide the color.

Return Value

The UIColor object.

Declared In

UIColor+TKCategory.h

colorWithHex:alpha:

Creates and returns a color object using the specific hex value.

+ (UIColor *)colorWithHex:(unsigned int)hex alpha:(CGFloat)alpha

Parameters

hex

The hex value that will decide the color.

alpha

The opacity of the color.

Return Value

The UIColor object.

Declared In

UIColor+TKCategory.h

colorWithHexString:

Creates and returns a color object using the specific hex value.

+ (UIColor *)colorWithHexString:(NSString *)hexString

Parameters

hexString

The hex value that will decide the color.

Return Value

The UIColor object.

Declared In

UIColor+TKCategory.h

randomColor

Creates and returns a color object with a random color value. The alpha property is 1.0.

+ (UIColor *)randomColor

Return Value

The UIColor object.

Declared In

UIColor+TKCategory.h

randomColorWithAlpha:

Creates and returns a color object with a random color value.

+ (UIColor *)randomColorWithAlpha:(CGFloat)alpha

Parameters

alpha

The alpha of the color.

Return Value

The UIColor object.

Declared In

UIColor+TKCategory.h