How to change color of letters of sectionIndexTitlesForTableView?

前端 未结 8 622
情深已故
情深已故 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()
    

提交回复
热议问题