I need to change the backgroundcolor of IndexBar for UITableView in iOS7.
For Default , IndexBar backgroundColor is white and textColor is blue like following pic.

I want to change the backgroundColor to clearColor and textColor to red.
How can i do that in iOS7?
You cannot change the table style once it's initialised. You'd have to create a new UITableView instance with a different style.
In the Storyboard menu for the viewController of your tableView, click on yourViewController. The first dropdown inside the viewController. (The first dropdown will contain your tableView and cellView. It can also contain other goodies depending on your particular project).
Sorry. I got my answer for my own question.
Here is codes
[[self tableView] setSectionIndexColor:[UIColor redColor]];
[[self tableView] setSectionIndexBackgroundColor:[UIColor clearColor]];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With