【发布时间】:2016-04-01 19:42:14
【问题描述】:
假设我有一个十六进制颜色列表:{#5375ab, #D673DD, #fca565, #4f70a6, #f86cb5, #b9f3cd, #eff8a5, #f4adf9, #fe502e, #5375ab}。
在我的 UITableView 中,有没有办法循环浏览颜色列表并将每个单元格设置为一种颜色?
例如背景颜色是这样的:
Cell 1 - backgroundColor: #5375ab
Cell 2 - backgroundColor: #D673DD
Cell 3 - backgroundColor: #fca565
...等等
【问题讨论】:
标签: ios objective-c uitableview ios7