我想爲我的標籤創建自定義顏色。尋找比所給出的更深的綠色。用於標籤的自定義UIColor
我的代碼如下:
switch()
{
case0:
[answerLabel0 setTextColor:[UIColor greenColor]];
break;
case1:
[answerLabel1 setTextColor:[UIColor greenColor]];
break;
case2:
[answerLabel2 setTextColor:[UIColor greenColor]];
break;
case3:
[answerLabel3 setTextColor:[UIColor greenColor]];
break;
default:
break;
}
有人可以幫助嗎?