Type Method

colorWithCGColor:

Creates a color object using the specified Quartz color reference.

Declaration

+ (UIColor *)colorWithCGColor:(CGColorRef)cgColor;

Parameters

cgColor

A reference to a Quartz color.

Return Value

The color object. The color information represented by this object is in the native colorspace of the specified Quartz color.

See Also

Creating a Color from Another Color Object

+ colorWithCIColor:

Creates a color object that encapsulates a Core Image color.

- initWithCIColor:

Creates a color object that encapsulates a Core Image color.

- initWithCGColor:

Creates a color object using the specified Quartz color reference.

- colorWithAlphaComponent:

Creates a color object that has the same color space and component values as the receiver, but has the specified alpha component.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software