我自定义我的UITableView,我想出了如何设置每个单元格的选定颜色。在我cellForRowAtIndexPath
的方法,我有以下代码:渐变imageView iOS
UIView *bgColorView = [[UIView alloc] init];
[bgColorView setBackgroundColor:[UIColor orangeColor]];
[cell setSelectedBackgroundView:bgColorView];
[bgColorView release];
但它是一个坚实的橙色。我想让它看起来更光滑,并且从浅橙色到深橙色都有轻微的渐变。我怎样才能做到这一点?