【发布时间】:2009-10-10 07:12:10
【问题描述】:
我的索引表视图的部分索引标题遇到了一个奇怪的问题。返回的索引标题是正确的 (A - Z),如下面的调试代码输出的那样,但表格右侧显示的索引标题用 • 分隔。所以不是 A B C D... 我得到 A • C • E •... 代替。
知道是什么原因造成的吗?我的应用程序中有另一个 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(调试); 返回部分标题; }【问题讨论】:
标签: iphone cocoa-touch uikit