Remove headers from PeopleViewController.

This commit is contained in:
Doug
2021-07-09 14:22:33 +01:00
parent 61e02323ba
commit f7c5279416
+2 -30
View File
@@ -74,8 +74,6 @@
// Change the table data source. It must be the people view controller itself.
self.recentsTableView.dataSource = self;
self.enableStickyHeaders = YES;
}
- (void)didReceiveMemoryWarning
@@ -181,24 +179,12 @@
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
// FIXME: Should this need to check the section?
if (section >= directRoomsSectionNumber)
{
return 0.0;
}
return [super tableView:tableView heightForHeaderInSection:section];
return 0.0;
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
// FIXME: Should this need to check the section?
if (section >= directRoomsSectionNumber)
{
return nil;
}
return [super tableView:tableView viewForHeaderInSection:section];
return nil;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
@@ -226,20 +212,6 @@
#pragma mark - Override RecentsViewController
- (UIView *)tableView:(UITableView *)tableView viewForStickyHeaderInSection:(NSInteger)section
{
// FIXME: Should this need to check the section?
if (section >= directRoomsSectionNumber || recentsDataSource == nil)
{
return nil;
}
CGRect frame = [tableView rectForHeaderInSection:section];
frame.size.height = self.stickyHeaderHeight;
return [recentsDataSource viewForStickyHeaderInSection:section withFrame:frame];
}
- (void)refreshCurrentSelectedCell:(BOOL)forceVisible
{
// Check whether the recents data source is correctly configured.