【问题标题】:Remove tint on TableView iOS 7删除 TableView iOS 7 上的色调
【发布时间】:2013-09-11 13:16:54
【问题描述】:

我正在尝试删除字母索引器后面的白色视图,但没有运气。 我试图说清楚,但到目前为止对我没有任何帮助。

【问题讨论】:

  • 请注意,iOS 7 和 Xcode 5 仍处于保密协议下,因此您的问题可能不会得到任何回复。
  • iOS 6.0 引入了“sectionIndexTrackingBackgroundColor”属性。在这里也可能是相关的。
  • @rckoenes 自 GM 发布以来还没有被删除?
  • @MahmoudA 不,在下载上方的黄色通知中是偶数状态。

标签: ios uitableview ios7


【解决方案1】:

sectionIndexBackgroundColor 是您要找的。你可以这样做,

tableView.sectionIndexBackgroundColor = [UIColor clearColor];

如果要更改突出显示状态的颜色,请使用以下属性。

tableView.sectionIndexTrackingBackgroundColor = [UIColor redColor];

请记住,sectionIndexBackgroundColor 在 iOS7 中可用。因此,如果您支持 iOS6,您可能需要调用类似这样的代码。

if ([tableView respondsToSelector:@selector(sectionIndexBackgroundColor)]) {
    tableView.sectionIndexBackgroundColor = [UIColor clearColor];
}

【讨论】:

    猜你喜欢
    • 2016-12-25
    • 1970-01-01
    • 2013-09-28
    • 2013-09-25
    • 2013-09-27
    • 2013-01-02
    • 2016-11-09
    • 1970-01-01
    • 2013-09-18
    相关资源
    最近更新 更多