天天看点

ios中颜色设置

在ios设计中,要进行颜色的RGB设置,不能同于在其他编程中。而是要进行对255.0的相除,即180.0/255.0。这样才能得到正确的颜色值。

[btLabelThree setTextColor:[UIColor colorWithRed:59.0/255.0 green:161.0/255.0 blue:235.0/255.0 alpha:1.0]];

继续阅读