我正在为使用UITableView
的iPhone应用程序工作。在我的tableview中,我有多个单元格的多个部分。我想给每个单元格的单元格背景颜色。这意味着each cell should have different colors
。例如:如果有20个单元,则每个20个单元应该具有不同的单元背景颜色。在iPhone应用程序中更改每个UITableViewCell背景颜色?
你能告诉我是否可以给每个细胞提供细胞背景颜色/图像吗? 你能指导我做这个吗?
在此先感谢。
编辑
我Tableviewcell颜色就会像下面,
First Cell background color : white color
Second Cell background color : red color
Third Cell background color : orange color
Fourth cell background color : gray color
Fifth Cell background color : white color
Sixth cell background color : white color
Seventh cell background color : white color
Eight cell background color : gray color
Ninth cell background color : red color
Tenth cell background color : red color
我想给的tableview单元格背景颜色也赞。然后当UITableView重新加载或重新打开时,背景颜色会发生变化。你能帮我这样做吗? iPhone应用程序tableview中可以做什么?
在此先感谢。
可能的重复http://stackoverflow.com/questions/281515/how-to-customize-the-background-color-of-a-uitableviewcell – 2012-05-07 13:25:54