Various UI improvements

This commit is contained in:
Ilya Laktyushin
2020-12-25 20:16:12 +04:00
parent 1f23769a5b
commit 5459c357d4
28 changed files with 538 additions and 61 deletions

View File

@@ -53,7 +53,6 @@
if (iosMajorVersion() >= 11)
_tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
_tableView.alwaysBounceVertical = true;
_tableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_tableView.backgroundColor = self.view.backgroundColor;
_tableView.delaysContentTouches = true;
_tableView.canCancelContentTouches = true;
@@ -71,6 +70,17 @@
[self controllerInsetUpdated:UIEdgeInsetsZero];
}
- (void)setTopInset:(CGFloat)topInset {
_topInset = topInset;
[self viewDidLayoutSubviews];
}
- (void)viewDidLayoutSubviews {
[super viewDidLayoutSubviews];
_tableView.frame = CGRectMake(0.0, _topInset, self.view.bounds.size.width, self.view.bounds.size.height - _topInset);
}
- (void)loadViewIfNeeded
{
if (iosMajorVersion() >= 9)