iOS SDK / Objective C
Adds basic support for hex colors to UIColor.
Usage:
-
Add the file to your project. Include UIColor+HexColors.h in your Prefix Header for Ultimate Good Timez.
-
To get a UIColor from a hex string, use: (without leading #)
[UIColor colorFromHexString:@"ffffff"];
-
To get a hex string from a UIColor, use:
[UIColor hexStringFromColor:[UIColor whiteColor]];