Latest 1.3.0
Homepage https://github.com/kevinrenskers/UIColor-HexString
License BSD
Platforms ios 6.0, tvos 9.0, watchos 2.0, requires ARC
Authors

Easy, Android-compatible hex strings to UIColor. Code from Micah Hainline, found on http://stackoverflow.com/questions/1560081/how-can-i-create-a-uicolor-from-a-hex-string/7180905#7180905. All I’ve done is package it for CocoaPods.

Example:

[UIColor colorWithHexString:@"#2D9EDF"]

Has support for the following hex formats:

  • RGB

  • ARGB

  • RRGGBB

  • AARRGGBB

Latest podspec

{
    "name": "UIColor-HexString",
    "version": "1.3.0",
    "summary": "Easy, Android-compatible hex strings to UIColor.",
    "homepage": "https://github.com/kevinrenskers/UIColor-HexString",
    "license": {
        "type": "BSD",
        "file": "LICENSE"
    },
    "authors": {
        "Kevin Renskers": "[email protected]"
    },
    "platforms": {
        "ios": "6.0",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "source": {
        "git": "https://github.com/kevinrenskers/UIColor-HexString.git",
        "tag": "1.3.0"
    },
    "source_files": "*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This