十六进制的颜色值转成RGB UIColor

来源:互联网 发布:淘宝店代理货源 编辑:程序博客网 时间:2024/05/16 06:44

#define UIColorFromGRB(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

0 0
原创粉丝点击