我们如何以编程方式设置标签文本的颜色,我的颜色是R 77 G 104 B 159
我尝试过以下代码,但没有用.
我尝试过以下代码,但没有用.
Label.textColor = [UIColor colorWithRed:77.0 green:104.0 blue:159.0 alpha:1.0];
解决方法
请尝试代码
Label.textColor=[UIColor colorWithRed:77.0/255.0f green:104.0/255.0f blue:159.0/255.0f alpha:1.0];