Declared in UIColor+TKCategory.h

Overview

Additional functionality for UIColor.

Tasks

  • + colorWithHex:

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

  • + colorWithHex:alpha:

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

  • + randomColor

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

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.

Discussion

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

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.

Discussion

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

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.

Discussion

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

Declared In

UIColor+TKCategory.h