Skip to content

Instantly share code, notes, and snippets.

@jeremiegirault
Created May 15, 2014 09:16
Show Gist options
  • Save jeremiegirault/30e1fa2bef5a64952453 to your computer and use it in GitHub Desktop.
Save jeremiegirault/30e1fa2bef5a64952453 to your computer and use it in GitHub Desktop.
// usage : HEX(0xB5C5D2)
#define HEX(hex) [UIColor colorWithRed:(((hex) >> 16)&0x000000FF)/255.0 green:(((hex) >> 8)&0x000000FF)/255.0 blue:((hex)&0x000000FF)/255.0 alpha:1.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment