时间:2021-07-01 10:21:17 帮助过:16人阅读
-(void)color:(NSString *) red andGreen:(NSString*) green andBule:(NSString*) bule{ NSInteger Red = [red integerValue]; NSInteger Green = [green integerValue]; NSInteger Bule = [bule integerValue]; NSInteger colorsize = Red<<16 | Green << 8 | Bule; NSString * Color = [NSString stringWithFormat:@"#%06lx",colorsize]; NSLog(@"%li",(long)colorsize); NSLog(@"Color = %@",Color);}