【发布时间】:2010-02-16 07:36:07
【问题描述】:
我尝试了多种方法来设置未选中表格单元格的背景图像,但都没有成功:
1- In IB setting the image field
2- cell.contentView.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"list.png"]];
3- cell.imageView.image = [UIImage imageNamed:@"list_selected.png"];
似乎一切都失败了。选定单元格的图像设置有效,但不适用于未选定的单元格。有人知道这里可能出了什么问题吗?
谢谢
【问题讨论】:
标签: iphone cocoa-touch image uitableview