How can I change the color of the letters of the IndexTitlesForTableView section?
I hope you are all right and in a better mood.
I have a little problem, kindly help me get a solution.
My problem:
I am using vertical search in my application using the sectionIndexTitlesForTableView () tableview method. I get all the characters listed from top to bottom per rights.
But these letters have a fixed color. I need to change this color. Since I'm a newbie, I don't know how to deal with this.
Please help find a solution.
Thanks, and sorry if you found me with the wrong english.
a source to share
There is no supported way to do this. Even if you have access to the index view (which is not easy for you), that would not be possible because there is no NSAttributedString on the iPhone, so you cannot return color information.
The best way to achieve this is to disable the table index and create your own from scratch by floating over the top of the table. But I would not recommend this approach for a new iPhone developer. Your best bet is to spend some training time to create user interfaces the way Apple wants you. Once you understand the Apple interface and how it is implemented, you can make informed decisions about whether to break the user interface rules.
a source to share