kri*_*ife 3 iphone objective-c uitableview three20 ios
我正在第三次尝试使用iPhone20框架,我似乎无法弄清楚如何将表格单元格的背景更改为UIImage而不仅仅是颜色.谁能帮我吗?
the*_*ent 11
您可以使用如下图像模式设置backgroundColor单元格contentView:
cell.contentView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"image.png"]];
Run Code Online (Sandbox Code Playgroud)
如果单元格是一个UITableViewCell或三个20 TTTableViewCell导数(因为它们来自UITableViewCell),这将起作用
| 归档时间: |
|
| 查看次数: |
8288 次 |
| 最近记录: |