【问题标题】:Strange issue with Indexed UITableView's section index title is incorrectIndexed UITableView 的部分索引标题不正确的奇怪问题
【发布时间】: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


    【解决方案1】:

    这是由于可用于显示索引的高度小于显示每个字母所需的高度。该索引被缩写(或缩小)。当键盘显示并且索引仍然可见时,也会出现这种效果。

    【讨论】:

      猜你喜欢
      • 2012-12-20
      • 1970-01-01
      • 1970-01-01
      • 2011-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-07
      • 1970-01-01
      相关资源
      最近更新 更多