성능을 위해 일반적으로 UITableView '셀을 다시 사용합니다. TableView 헤더보기에서 동일한 작업을 수행 할 수있는 방법이 있습니까? 나는 대리인의 방법으로 반환되는 것들에 대해 이야기하고 예상대로 나는 작동하지 않는 것 다음을 수행하려고재사용 가능한 TableView 헤더보기
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
은 :
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
static NSString *CellIdentifier = @"Header";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: CellIdentifier];
if (cell == nil) {
cell = [self getHeaderContentView: CellIdentifier];
}
return cell;
}
방법에 있는가 헤더 '보기를 재사용 하시겠습니까?
을 따를 수'reuseIdentifier을 사용합니다 UITableViewHeaderFooterView'. – h4xnoodle
하지만 현재 UI Builder를 사용하여 UITableViewHeaderFooterView를 사용할 수 없습니다. –