Skip to content

Instantly share code, notes, and snippets.

@sagiwei
Created July 3, 2014 15:40
Show Gist options
  • Save sagiwei/3adf3810add607c1b43e to your computer and use it in GitHub Desktop.
Save sagiwei/3adf3810add607c1b43e to your computer and use it in GitHub Desktop.
HEX转RGB
#define HEXCOLOR(c) [UIColor colorWithRed:((c>>24)&0xFF)/255.0 green:((c>>16)&0xFF)/255.0 blue:((c>>8)&0xFF)/255.0 alpha:((c)&0xFF)/255.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment