Latest 1.0.0
Homepage https://github.com/Madao-3/NSColor-HexString
License MIT
Platforms osx , requires ARC

All other credit to Micah Hainline and kevinrenskers.

Example:

[NSColor colorWithHexString:@"#9C0001"]

Has support for the following hex formats:

  • RGB

  • ARGB

  • RRGGBB

  • AARRGGBB

Latest podspec

{
    "name": "NSColor-HexString",
    "version": "1.0.0",
    "summary": "Hex strings to NSColor. Created by @kevinrenskers",
    "homepage": "https://github.com/Madao-3/NSColor-HexString",
    "license": {
        "type": "MIT"
    },
    "authors": "Madao",
    "platforms": {
        "osx": null
    },
    "source": {
        "git": "https://github.com/Madao-3/NSColor-HexString.git",
        "tag": "1.0.0"
    },
    "source_files": "*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This