mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various UI improvements
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user