How do I change the color of the side Alphabet in an indexed UITableView?

后端 未结 12 962
温柔的废话
温柔的废话 2020-11-27 14:03

I have a table view with an alphabetical index and am using the side alphabet to get through the list quickly. For those not familiar, that uses this:

- (NS         


        
12条回答
  •  无人及你
    2020-11-27 14:30

    Swift 5:

    tableView.sectionIndexColor = .red
    tableView.sectionIndexBackgroundColor = .clear
    

提交回复
热议问题