iOS几种设置颜色的方法。

[self.view setBackgroundColor:[UIColorcolorWithHexString:@"F3F3F3"]]; 

 [_textLabel setTextColor:[UIColorcolorWithHexString:@"969696"]];

self.contentView.backgroundColor=[UIColorclearColor];

self.contentView.layer.borderColor =[UIColorcolorWithHexString:@"969696"].CGColor;

 [_textLabel setTextColor:[UIColorcolorWithHexString:@"009788"]];

self.contentView.backgroundColor =[UIColorclearColor];

self.contentView.layer.borderColor = [UIColorcolorWithHexString:@"009788"].CGColor;

你可能感兴趣的:(iOS几种设置颜色的方法。)