I'm using an index search feature for a tableview. at the moment it shows just the first letter of the index to display. is there a way to display the full name of a section instead of just the first letter?
so instead of:
A
B
C
it would display
Appetizers
Entrees
Deserts
here's what I'm currently using:
- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView { return [resultsController sectionIndexTitles]; }
along with:
NSFetchedResultsController *fetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:request managedObjectContext:managedObjectContext sectionNameKeyPath:@"type" cacheName:nil];
NSError *error; BOOL success = [fetchedResultsController performFetch:&error]; if (!success) { // Handle error }
self.resultsController = fetchedResultsController; [request release];
[self.tableView reloadData];