我正在爲使用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