UIColor(HBAdditions) Category Reference

Declared in UIColor+HBAdditions.h

Overview

UIColor (HBAdditions) is a class category in Cephei that provides some convenience methods.

+ hb_colorWithPropertyListValue:

Creates and returns a color object using data from the specified object.

+ (instancetype)hb_colorWithPropertyListValue:(id)value

Parameters

value

The object to retrieve data from. See the discussion for the supported object types.

Return Value

The color object. The color information represented by this object is in the device RGB colorspace.

Discussion

The value is expected to either be an array of 3 or 4 integer RGB or RGBA color components (respectively), with values between 0 and 255, or a CSS hexadecimal color code string.

Declared In

UIColor+HBAdditions.h

– hb_initWithPropertyListValue:

Initializes and returns a color object using data from the specified object.

- (instancetype)hb_initWithPropertyListValue:(id)value

Parameters

value

The object to retrieve data from. See the discussion for the supported object types.

Return Value

An initialized color object. The color information represented by this object is in the device RGB colorspace.

Discussion

The value is expected to either be an array of 3 or 4 integer RGB or RGBA color components (respectively), with values between 0 and 255, or a CSS hexadecimal color code string.

Declared In

UIColor+HBAdditions.h