I have a table view which is grouped according to month and year. For this I have created a transient attribute and a corresponding sort descriptor in the NSFetchedResultsController which helps me in grouping according to the month and year. The table view is working perfectly and displaying the sections just as I want (using titleForHeaderInSection).
I want to add an index to the table view, and I’m currently stalled here. I believe the only way to do this is by:
- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView
So how do I give it an array of all the section names?
P.S.: This is my first post.
Here’s what I did:
}