去除TableView iOS 7上的色调
我试图删除字母索引器后面的白色视图,但没有成功。 我正试图把事情弄清楚,但到目前为止,一切都不管用去除TableView iOS 7上的色调,ios,uitableview,ios7,Ios,Uitableview,Ios7,我试图删除字母索引器后面的白色视图,但没有成功。 我正试图把事情弄清楚,但到目前为止,一切都不管用 sectionIndexBackgroundColor是您需要的。你可以这样做 tableView.sectionIndexBackgroundColor = [UIColor clearColor]; 如果要更改高亮显示状态的颜色,请使用以下属性 tableView.sectionIndexTrackingBackgroundColor = [UIColor redColor]; 请记住,s
sectionIndexBackgroundColor
是您需要的。你可以这样做
tableView.sectionIndexBackgroundColor = [UIColor clearColor];
如果要更改高亮显示状态的颜色,请使用以下属性
tableView.sectionIndexTrackingBackgroundColor = [UIColor redColor];
请记住,sectionIndexBackgroundColor
在iOS7中可用。所以,如果你支持iOS6,你可能会想这样称呼它
if ([tableView respondsToSelector:@selector(sectionIndexBackgroundColor)]) {
tableView.sectionIndexBackgroundColor = [UIColor clearColor];
}
请注意,iOS 7和Xcode 5仍在保密协议下,因此您可能无法得到任何问题的答复。iOS 6.0引入了“sectionIndexTrackingBackgroundColor”属性。可能也与此相关。@rckoenes自GM发布以来没有被删除过吗?@MahmoudA没有,甚至在下载上方的黄色通知中也有说明。