Groups list: Support dynamic fonts by enabling self-sizing table view cell, and use constraints to define the cell’s size.

vector-im/riot-meta#114
This commit is contained in:
Giom Foret
2017-12-28 12:02:21 +01:00
parent 33b75edcde
commit 75fffb405d
5 changed files with 37 additions and 54 deletions
@@ -83,6 +83,10 @@
// Hide line separators of empty cells
self.groupsTableView.tableFooterView = [[UIView alloc] init];
// Enable self sizing cells
self.groupsTableView.rowHeight = UITableViewAutomaticDimension;
self.groupsTableView.estimatedRowHeight = 74;
// Observe UIApplicationDidEnterBackgroundNotification to refresh bubbles when app leaves the foreground state.
UIApplicationDidEnterBackgroundNotificationObserver = [[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationDidEnterBackgroundNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {