How to change color of letters of sectionIndexTitlesForTableView?

前端 未结 8 609
情深已故
情深已故 2021-01-11 13:12

I need to change the color of sectionIndexTitlesForTableView in iOS 5. I could not find any method in the APIs to do the task. Can anyone offer me some help?

The se

相关标签:
8条回答
  • 2021-01-11 13:57

    Go to the IB and change the text COLOR to white, Works for meenter image description here

    //=========================================

    And in Swift, you can also change Programatically by:

    self.my_tableView.sectionIndexColor = UIColor.greenColor()
    
    0 讨论(0)
  • 2021-01-11 13:58

    Following code is a straight solution. api is available from iOS 6

     [tableView setSectionIndexColor:[UIColor greenColor]];
    
    0 讨论(0)
提交回复
热议问题