Reuse section headers

This commit is contained in:
ismailgulek
2022-02-10 03:19:00 +03:00
parent 357c8fa621
commit 16135e6e8a
10 changed files with 40 additions and 28 deletions

View File

@@ -421,7 +421,9 @@
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
// Let dataSource provide the section header.
return [dataSource viewForHeaderInSection:section withFrame:[tableView rectForHeaderInSection:section]];
return [dataSource viewForHeaderInSection:section
withFrame:[tableView rectForHeaderInSection:section]
inTableView:tableView];
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath