Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 511 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 511 Bytes

UIColor-Helper

  • UIColor-Helper is a useful and light color tool for iOS.

Functions:

+ (UIColor *)colorWithColorCodeString:(NSString *)colorString;
+ (UIColor *)colorWithARGB:(NSUInteger)color;
+ (UIColor *)colorWithRGB:(NSUInteger)color;
+ (UIColor *)colorWithRGBA:(NSUInteger)color;
+ (UIColor *)colorWithRGBWithString:(NSString *)colorString;

The most common use way:

#import "UIColor+Helper.h"

#define ErrorRedColor @"EF4257"

[UIColor colorWithColorCodeString:ErrorRedColor];