Latest 0.0.1
Homepage https://github.com/BlueTopsky/UIColor-SKYExtension
License MIT
Platforms ios 8.0
Authors

UIColor-SKYExtension

通过十六进制和RGB生成颜色UIColor

安装:pod ‘UIColor+SKYExtension’

/**
 从十六进制字符串获取颜色

 @param color 支持@"#123456"、 @"0X123456"、@"0x123456"、 @"123456"四种格式
 @return UIColor
 */
+ (UIColor *)colorWithHexString:(NSString *)color;

/**
 从十六进制字符串获取颜色

 @param color 支持@"#123456"、 @"0X123456"、@"0x123456"、 @"123456"四种格式
 @param alpha 透明度
 @return UIColor
 */
+ (UIColor *)colorWithHexString:(NSString *)color alpha:(CGFloat)alpha;

/**
 根据RGB生成颜色

 @param rgb @"51,51,51"
 @return UIColor
 */
+ (UIColor *)colorWithRGB:(NSString *)rgb;

/**
 根据RGB生成颜色

 @param rgba @"51,51,51,0.5"
 @return UIColor
 */
+ (UIColor *)colorWithRGBA:(NSString *)rgba;

/**
 生成随机色

 @return UIColor
 */
+ (UIColor *)randomColor;

Latest podspec

{
    "name": "UIColor+SKYExtension",
    "version": "0.0.1",
    "summary": "u901au8fc7u5341u516du8fdbu5236u548cRGBu751fu6210u989cu8272",
    "description": "UIColoru7684u5206u7c7buff0cu53efu901au8fc7u5341u516du8fdbu5236u548cRGBu751fu6210u989cu8272",
    "homepage": "https://github.com/BlueTopsky/UIColor-SKYExtension",
    "license": "MIT",
    "authors": {
        "luoyesuifeng": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/BlueTopsky/UIColor-SKYExtension.git",
        "tag": "0.0.1"
    },
    "source_files": "UIColorCategory/*.{h,m}"
}

Pin It on Pinterest

Share This