그룹화 된 테이블보기를 만드는 중입니다. 데이터가 올바르게로드되지만 그룹화 된보기에는 많은 빈 흰색 공백이 있습니다. 몇 번 위아래로 스크롤하면 인구가 발생합니다. 도움?Groupted 테이블보기 셀이로드되지 않습니다.
static NSString *Id= @"CustomDiagChargeID";
CustomCellDiagCharges *cell = (CustomCellDiagCharges *)[tableView dequeueReusableCellWithIdentifier:Id];
if(cell == nil) {
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomCellDiagCharges" owner:self options:nil];
for (id oneObject in nib) {
if([oneObject isKindOfClass:[CustomCellDiagCharges class]])
cell = (CustomCellDiagCharges *) oneObject;
}
}
NSUInteger row = [indexPath row];
DiagDetails *rowData = [preferences getDiagElementAt:indexPath.section row:row];
cell.code.text = rowData.ICD9Code;
cell.desc.text = rowData.ICD9Desc;
return cell;
감사합니다,
테이야 :
여기 내 getCellForRowIndexAtPath
방법입니다.
"NSUInteger row ="위에 어설 션을 추가하여 셀이 0이 아닌지 확인할 수 있습니까? 또한 정적 데이터로 셀 채우기를 시도 할 수 있습니까? 그리고 [NSString stringWithFormat : @ "Cell % d : % d", indexPath.section, indexPath.row]와 같은 것을 시도해보십시오. ?? – jessecurry
같은 문제가 정적 데이터로 채워지려고했습니다. 그게 어떻게 든 물건을 변경하면 그룹화 된 tableView를 사용하고 있습니까? –