Type Method

colorNamed:

Creates a color object using the information stored in the named asset.

Declaration

+ (UIColor *)colorNamed:(NSString *)name;

Parameters

name

The name of the asset containing the color.

Return Value

An initialized color object. The returned object uses the color space specified for the asset.

See Also

Creating a Color from Component Values

+ colorWithWhite:alpha:

Creates a color object using the specified opacity and grayscale values.

+ colorWithHue:saturation:brightness:alpha:

Creates a color object using the specified opacity and HSB color space component values.

+ colorWithRed:green:blue:alpha:

Creates a color object using the specified opacity and RGB component values.

+ colorWithDisplayP3Red:green:blue:alpha:

Creates a color object using the specified opacity and RGB component values in the Display P3 color space.

- initWithWhite:alpha:

Creates a color object using the specified opacity and grayscale values.

- initWithHue:saturation:brightness:alpha:

Creates a color object using the specified opacity and HSB color space component values.

- initWithRed:green:blue:alpha:

Creates a color object using the specified opacity and RGB component values.

- initWithDisplayP3Red:green:blue:alpha:

Creates a color object using the specified opacity and RGB component values in the Display P3 color space.

+ colorNamed:inBundle:compatibleWithTraitCollection:

Creates a color object using the named asset that is compatible with the specified trait collection.