如何在iOS7中更改UITableView的IndexBar的backgroundColor?
问题描述:
我需要更改backgroundcolor
的IndexBar
的UITableView
的iOS7
。如何在iOS7中更改UITableView的IndexBar的backgroundColor?
默认为IndexBar
backgroundColor为白色,textColor
为蓝色,如下图所示。
我想给的backgroundColor改为clearColor
和textColor
红色。
我如何在iOS7中做到这一点?
答
对不起。我为自己的问题得到了答案。
这里是码
[[self tableView] setSectionIndexColor:[UIColor redColor]];
[[self tableView] setSectionIndexBackgroundColor:[UIColor clearColor]];
感谢大量:)(y)的 – ishhhh