#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
一个很方便使用十六进制的颜色值的宏,布布扣,bubuko.com
原文:http://www.cnblogs.com/toaism/p/3623390.html