我正在尝试删除字母索引器后面的白色 View ,但没有成功。 我试图说清楚,但到目前为止没有任何效果。
最佳答案
sectionIndexBackgroundColor
正是您要找的。你可以这样做,
tableView.sectionIndexBackgroundColor = [UIColor clearColor];
如果要更改突出显示状态的颜色,请使用以下属性。
tableView.sectionIndexTrackingBackgroundColor = [UIColor redColor];
请记住,sectionIndexBackgroundColor
在 iOS7 中可用。因此,如果您支持 iOS6,您可能希望这样调用。
if ([tableView respondsToSelector:@selector(sectionIndexBackgroundColor)]) {
tableView.sectionIndexBackgroundColor = [UIColor clearColor];
}
关于ios - 删除 TableView iOS 7 上的色调,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18742285/