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


1 answer


This is because the height displayed to display the index is less than what is required to display each letter. The index is abbreviated (or abbreviated). This effect will also occur when the keyboard is displayed and the index is still displayed.



+2


source







All Articles