I have a table view with many sections, the name for these sections is just AZ and #, as in the application for the iPhone address book. I applied sectionIndexTitlesForTableView to quickly jump to a specific letter and basically just return an array of letters AZ and #.
This will work if my list always contains an element for each letter of the alphabet, but it will not, and this screws up the headings of the section indexes, because pressing C in the list can go to D if the 3rd section is D (i.e. if there is nothing in section C.
I know that I can only return an array to sectionIndexTitlesForTableView with letters that are sections, but that would look a little strange and would not be the same functionality as the iPhone address book application.
How can i fix this?
source
share