UIColor(Extensions) Category Reference

Declared in UIColor+Extensions.h

Overview

UIColor extension methods.

+ randomColor

Returns a randomly selected color.

+ (nonnull UIColor *)randomColor

Return Value

A randomly selected UIColor object.

Declared In

UIColor+Extensions.h

+ colorWithRGBAHexString:

Creates a UIColor object from a hex color code.

+ (nullable UIColor *)colorWithRGBAHexString:(nonnull NSString *)hexString

Parameters

hexString

The hex color code to parse. May begin with ‘#’ or ‘0x’. The alpha channel is optional.

Return Value

The resulting UIColor object.

Declared In

UIColor+Extensions.h

– inverseColor

Returns the inverse of this color.

- (nonnull UIColor *)inverseColor

Return Value

The inverse color.

Declared In

UIColor+Extensions.h

– hexString

Returns the hex color code for this color.

- (nonnull NSString *)hexString

Return Value

The hex color code.

Declared In

UIColor+Extensions.h