当我调用cellForRowAtIndexPath
时,我已在我的UITableCell
中添加了accessoryView UIView
。配件查看图像在选择行时未突出显示
cell.accessoryView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"flechalinterna.png"]];
cell.accessoryView.backgroundColor=[UIColor clearColor];
但是,当用户在索引路径上选择行时,附件视图不会高亮显示。我试图避免它将背景颜色设置为clearColor
,但它没有任何区别。得到这个图片中显示的以下效果:
贵'flechalinterna.png'具有透明背景? – graver
我认为你是对的,会使我的图像透明,并会再次检查。谢谢 – civiac
@graver它当然有效。非常感谢你。 – civiac