宏定义

//根据十六进制设置颜色UIColorFromRGB(0xF9F9F9)

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue &0xFF0000) >>16))/255.0green:((float)((rgbValue &0xFF00) >>8))/255.0blue:((float)(rgbValue &0xFF))/255.0alpha:1.0]

你可能感兴趣的:(宏定义)