Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/100.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
去除TableView iOS 7上的色调_Ios_Uitableview_Ios7 - Fatal编程技术网

去除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没有,甚至在下载上方的黄色通知中也有说明。