Merge branch 'charlesmchen/slidingTableContent'

pull/1/head
Matthew Chen 7 years ago
commit f7c2cf0f2e

@ -390,6 +390,13 @@ NSString * const kOWSTableCellIdentifier = @"kOWSTableCellIdentifier";
self.tableView.delegate = self;
self.tableView.dataSource = self;
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
// Fix a bug that only affects iOS 11.0.x and 11.1.x.
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(11, 0) && !SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(11, 2)) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpartial-availability"
self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
#pragma clang diagnostic pop
}
[self.view addSubview:self.tableView];
[self.tableView autoPinToSuperviewEdges];

Loading…
Cancel
Save