//
//  UIColor+Hex.h
//  ZYS-DOC-Demo
//
//  Created by 花田半亩 on 16/5/6.
//  Copyright © 2016年 花田半亩. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor (Hex)
+ (UIColor *)colorWithHexString:(NSString *)color;

//从十六进制字符串获取颜色，
//color:支持@“#123456”、 @“0X123456”、 @“123456”三种格式
+ (UIColor *)colorWithHexString:(NSString *)color alpha:(CGFloat)alpha;

//RGB颜色
+ (UIColor *)colorwithRed:(CGFloat)redColor andBlue:(CGFloat)blueColor andGreen:(CGFloat)greenColor andAlpha:(CGFloat)alpha;
@end
