2
我遇到了一个奇怪的问题与我的索引tableview的部分索引标题。由下面的调试代码输出的返回的索引标题是正确的(A - Z),但是表中右侧显示的索引标题用•代替。所以,而不是A B C D ...我得到A•C•E•...代替。索引UITableView的部分索引标题奇怪的问题是不正确
任何想法是什么造成这种情况?我在我的应用程序中有另一个tableview,但该tableview不会遇到这个问题,但我还没有弄清楚为什么呢。
- (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; }