UIColor(Extensions) Category Reference
Declared in | UIColor+Extensions.h |
---|
+ randomColor
Returns a randomly selected color.
+ (nonnull UIColor *)randomColor
Return Value
A randomly selected UIColor
object.
Discussion
Returns a randomly selected color.
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.
Discussion
Creates a UIColor
object from a hex color code.
Declared In
UIColor+Extensions.h
– inverseColor
Returns the inverse of this color.
- (nonnull UIColor *)inverseColor
Return Value
The inverse color.
Discussion
Returns the inverse of this color.
Declared In
UIColor+Extensions.h
– hexString
Returns the hex color code for this color.
- (nonnull NSString *)hexString
Return Value
The hex color code.
Discussion
Returns the hex color code for this color.
Declared In
UIColor+Extensions.h