GroupParticipantsViewController: support the self-sizing cells,

and the self-sizing section headers.

vector-im/riot-meta#115
This commit is contained in:
Giom Foret
2017-12-29 19:54:13 +01:00
parent 5a08fb284d
commit 2975ba7fbf
7 changed files with 81 additions and 51 deletions
@@ -88,6 +88,7 @@
self.groupsTableView.estimatedRowHeight = 74;
self.groupsTableView.sectionHeaderHeight = UITableViewAutomaticDimension;
self.groupsTableView.estimatedSectionHeaderHeight = 30;
self.groupsTableView.estimatedSectionFooterHeight = 0;
// Observe UIApplicationDidEnterBackgroundNotification to refresh bubbles when app leaves the foreground state.
UIApplicationDidEnterBackgroundNotificationObserver = [[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationDidEnterBackgroundNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {
@@ -428,6 +429,8 @@
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath;
{
[super tableView:tableView willDisplayCell:cell forRowAtIndexPath:indexPath];
cell.backgroundColor = kRiotPrimaryBgColor;
// Update the selected background view