我第一次尝试 three20 iPhone 框架,我似乎无法弄清楚如何将表格单元格的背景更改为 UIImage 而不仅仅是颜色。谁能帮帮我?
最佳答案
您可以使用如下图像模式设置单元格 contentView
的 backgroundColor
:
cell.contentView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"image.png"]];
如果单元格是 UITableViewCell
或 three20 TTTableViewCell
衍生物(因为它们派生自 UITableViewCell
),这将起作用
关于iphone - 自定义表格单元格背景图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5318117/