#define HEXCOLOR(c) [UIColor colorWithRed:((c>>16)&0xFF)/255.0 green:((c>>8)&0xFF)/255.0 blue:(c&0xFF)/255.0 alpha:1.0];
baseView.backgroundColor = HEXCOLOR(strtoul([@"0xf74545" UTF8String],0,16));
时间: 2024-11-05 16:10:35
#define HEXCOLOR(c) [UIColor colorWithRed:((c>>16)&0xFF)/255.0 green:((c>>8)&0xFF)/255.0 blue:(c&0xFF)/255.0 alpha:1.0];
baseView.backgroundColor = HEXCOLOR(strtoul([@"0xf74545" UTF8String],0,16));