-(CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
if([tableView.somethingMagicalHereThatAllowsMeKnowWhichCellItIs isEqualToString:@"CellType"]){
return 50;
}
return 25;}
다른 유형의 여러 셀이있는 tableView가 있는데 그에 맞게 스타일을 지정하고 싶지만 문제는 입력 할 때 어떤 유형인지 알 수 없기 때문에 indexPath를 사용할 수 없습니다. 세포는 특정 순서가 아닙니다. 이드를 보여줄 수있는 방법이 있습니까?UITableView 셀의 이름, ID 또는 유형을 어떻게 알 수 있습니까?
데이터 소스 메소드 -tableView : cellForRowAtIndexPath를 구현하면 주어진 indexPath에 대해 표시 할 셀을 알 수 있습니까? 왜 tableView에서 동일한 접근법을 사용할 수 없습니까? heightForRowAtIndexPath :? – Costique