- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
id <NSFetchedResultsSectionInfo> sectionInfo = [[self.fetchedResultsController sections] objectAtIndex:section];
if ([tempArray containsObject: [sectionInfo indexTitle]])
{
[tempArray removeObjectAtIndex:[tempArray indexOfObject:[sectionInfo indexTitle]]];
return nil;
}else
{
[tempArray addObject: [sectionInfo indexTitle]];
return [sectionInfo indexTitle];
}
return [sectionInfo indexTitle];
}jQuery과 섹션 헤더와 빈 알파벳순 세포 그러나 대신 해당 타이틀의 빈 회색 표시 헤더 그룹 상기
코드를 점멸. 헤더 수를 지정하지 않았기 때문에 이것이 가능할 수 있습니까? 이것은 자연스럽게 알파벳의 모든 문자에 대한 단일 헤더입니다. 셀 헤더가 흰색에서 회색으로 깜박이는 이유는 무엇입니까?
3.2 용으로 빌드하면 위의 로직과 함께 작동합니다. 3.1.2 (내가하고있는)로 빌드하면 버그가 나타납니다. –