【问题标题】:How to change the backgroundColor of IndexBar for UITableView in iOS7?如何在 iOS 7 中更改 TableView 的 IndexBar 的背景颜色?
【发布时间】:2013-09-30 04:26:11
【问题描述】:

我需要在iOS7 中将IndexBarbackgroundcolor 更改为UITableView

对于 Default ,IndexBar backgroundColor 为白色,textColor 为蓝色,如下图所示。

我想将 backgroundColor 更改为 clearColor 并将 textColor 更改为红色。

在 iOS7 中我如何做到这一点?

【问题讨论】:

    标签: uitableview indexing ios7


    【解决方案1】:

    对不起。我自己的问题得到了答案。

    这里是代码

    [[self tableView] setSectionIndexColor:[UIColor redColor]];
    [[self tableView] setSectionIndexBackgroundColor:[UIColor clearColor]];
    

    【讨论】:

      猜你喜欢
      • 2014-10-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-15
      • 1970-01-01
      • 2013-10-04
      • 1970-01-01
      相关资源
      最近更新 更多