Skip to content

Instantly share code, notes, and snippets.

@udonchan
Created March 23, 2010 22:11
Show Gist options
  • Save udonchan/341746 to your computer and use it in GitHub Desktop.
Save udonchan/341746 to your computer and use it in GitHub Desktop.
UIColor を HTML っぽい感じにするマクロ
#define COLOR_HEX(c) [UIColor colorWithRed:((c>>16)&0xFF)/255.0 \
green:((c>>8)&0xFF)/255.0 \
blue:(c&0xFF)/255.0 \
alpha:1.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment