Swift version:
tableView.sectionIndexBackgroundColor = UIColor.clearColor() //iOS7+
tableView.sectionIndexTrackingBackgroundColor = UIColor.clearColor() //iOS6+
tableView.sectionIndexColor = UIColor.redColor() //iOS6+
To customize the index view height (UITableViewStylePlain
style only):
tableView.sectionIndexMinimumDisplayRowCount = 15