UIColor(fromHex) Category Reference

Declared in UIColor+Hex.h
UIColor+Hex.m

Overview

This class extension is used to translate an html color representation to a UIColor.

+ colorWithHexString:

This method is used to translate an html color representation to a UIColor.

+ (instancetype)colorWithHexString:(NSString *)hex

Discussion

This method is used to translate an html color representation to a UIColor.

Declared In

UIColor+Hex.h

+ lightThemeColor:darkThemeColor:

This method can be used to toggle between two different colors depending on the current system theme. Remember that this only returns the curent value, if the style is changed by the user you will need to refresh the interface and call this method again.

+ (instancetype)lightThemeColor:(UIColor *)light darkThemeColor:(UIColor *)dark

Discussion

This method can be used to toggle between two different colors depending on the current system theme. Remember that this only returns the curent value, if the style is changed by the user you will need to refresh the interface and call this method again.

Declared In

UIColor+Hex.h