How to change color of letters of sectionIndexTitlesForTableView?

前端 未结 8 672
情深已故
情深已故 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条回答
  •  旧时难觅i
    2021-01-11 13:51

    Swift 3

    you can just set the:

    tableView.sectionIndexColor 
    

    to whatever color your want like:

    tableView.sectionIndexColor = .red
    

提交回复
热议问题