How to set transparent background for sections index barin UITableView?
I tried:
tableView.sectionIndexBackgroundColor = .clearColor()
but the panel gets a light gray background
EDIT
I tried to change the background color in the table, but it does not seem to be affected.
tableView.backgroundView = UIView.init()
tableView.backgroundColor = .blackColor()
EDIT2
tableView.sectionIndexBackgroundColor = UIColor(white: CGFloat(1.0), alpha: CGFloat(0.5))
I also tried color with alpha values. I can make the background translucent (see line code above). But if I set alpha to 0.0 to make it completely transparent, I will again get a light gray background.
source
share