我正在尝试使用以下代码设置UIImageView的背景颜色(应该返回一种绿色):
cell.background.backgroundColor = [UIColor colorWithRed:50 green:200 blue:50 alpha:1];
但出于某种原因,这只会给我一个白色,似乎每当我设置蓝色时它就会变回白色,当我这样做时,它会返回黄色,这是正常的:
cell.background.backgroundColor = [UIColor colorWithRed:50 green:200 blue:0 alpha:1];