- (void)RGBWithHexColor:(int)hexColor {
int red = ((hexColor & 0xFF0000) >> 16);
int green = ((hexColor & 0xFF00) >> 8);
int blue = (hexColor & 0xFF);
NSLog(@"red:%d green:%d blue:%d", red, green, blue);
}
iOS开发16进制颜色转10进制RGB颜色
最新推荐文章于 2022-03-24 15:03:29 发布