Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set a tint color for the section index of a UITableView?

Is there any way to customize the grey color of the alphabetic section index of a UITableView?

like image 346
Ortwin Gentz Avatar asked May 13 '10 14:05

Ortwin Gentz


1 Answers

Since iOS 6.0 it's actually possible to customize the tint color for the section index. The relevant properties are: sectionIndexColor and sectionIndexTrackingBackgroundColor.

iOS 7 added sectionIndexBackgroundColor which specifies the background color for the section index while not being touched.

like image 94
Ortwin Gentz Avatar answered Sep 28 '22 05:09

Ortwin Gentz