UIColor(ColorWithHex) Category Reference
Declared in | UIColor+ColorWithHex.h |
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