CocoaPods trunk is moving to be read-only. Read more on the blog, there are 12 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Feb 2015 |
Maintained by lslin.
UIColor category that converts Hex and RGB color string values to UIColor.
UIColor+HexRGB.h and UIColor+HexRGB.h to your project. pod 'UIColor-HexRGB'.Requires iOS 4.3 and above.
#import "UIColor+HexRGB.h"
- (void)viewDidLoad {
[super viewDidLoad];
self.label1.backgroundColor = [UIColor colorWithHex: @"2eeea3"];
self.label2.backgroundColor = [UIColor colorWithHex: @"#fd482f"];
self.label3.backgroundColor = [UIColor colorWithRGB: @"99,159,137"];
self.label4.backgroundColor = [UIColor colorWithRGBA: @"137,99,59,0.5"];
self.label5.backgroundColor = [UIColor colorWithHex: @"0f0"];
}