Wrong UITableView indexed index header issue is wrong
I am having a strange problem with my indexes of indexed table partitions. The returned index names are correct (A-Z) as output by the debug code below, but the displayed index titles on the right side of the table are split instead. So instead of ABC D ... I get instead A • C • E • ....
Any idea what is causing this? I have another tableview in my application, but this tableview does not suffer from this problem, but I have not figured out why yet.
- (NSArray *) sectionIndexTitlesForTableView: (UITableView *) tableView { NSMutableArray * sectionTitles = [[[NSMutableArray alloc] init] autorelease]; [sectionTitles addObject: UITableViewIndexSearch]; [sectionTitles addObjectsFromArray: [self.fetchedResultsController sectionIndexTitles]]; // NSArray * debug = [self.fetchedResultsController sectionIndexTitles]; // CFShow (debug); return sectionTitles; }
+2
source to share