Reuse section headers

This commit is contained in:
ismailgulek
2022-02-10 03:19:00 +03:00
parent 93460f01a9
commit 8fb3a34c7b
10 changed files with 40 additions and 28 deletions
@@ -148,13 +148,13 @@
return count;
}
- (UIView *)viewForHeaderInSection:(NSInteger)section withFrame:(CGRect)frame
- (UIView *)viewForHeaderInSection:(NSInteger)section withFrame:(CGRect)frame inTableView:(UITableView*)tableView
{
UIView *sectionHeader = nil;
if (section != searchedRoomIdOrAliasSection)
{
sectionHeader = [super viewForHeaderInSection:section withFrame:frame];
sectionHeader = [super viewForHeaderInSection:section withFrame:frame inTableView:tableView];
}
return sectionHeader;