Declared in UIColor+ColorWithHex.h

Overview

This category facilitates the creation of UIColor objects with hexidecimal color values.

Tasks

Creating a UIColor instance with a hexidecimal color

Class Methods

colorWithHex:

Returns a UIColor instance based on the hexidecimal color value hexValue.

+ (UIColor *)colorWithHex:(int)hex

Parameters

hex

A six-digit hexidecimal integer.

Return Value

A UIColor object.

Availability

v1.0

Declared In

UIColor+ColorWithHex.h

colorWithHex:alpha:

Returns a UIColor instance based on the hexidecimal color value hexValue with an opacity of alpha.

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

Parameters

hex

A six-digit hexidecimal integer.

alpha

An alpha value from 0 to 1.

Return Value

A UIColor object.

Availability

v1.0

Declared In

UIColor+ColorWithHex.h