mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 11:20:18 +00:00
UI fixes for Update view and iOS 7
This commit is contained in:
parent
52ad2c54a6
commit
7e79c2d78d
@ -119,6 +119,10 @@
|
|||||||
tableViewContentHeight += [self tableView:self.tableView heightForRowAtIndexPath:[NSIndexPath indexPathForRow:i inSection:0]];
|
tableViewContentHeight += [self tableView:self.tableView heightForRowAtIndexPath:[NSIndexPath indexPathForRow:i inSection:0]];
|
||||||
}
|
}
|
||||||
tableViewContentHeight += self.tableView.tableHeaderView.frame.size.height;
|
tableViewContentHeight += self.tableView.tableHeaderView.frame.size.height;
|
||||||
|
if (![self.updateManager isPreiOS7Environment]) {
|
||||||
|
tableViewContentHeight += self.navigationController.navigationBar.frame.size.height;
|
||||||
|
tableViewContentHeight += [UIApplication sharedApplication].statusBarFrame.size.height;
|
||||||
|
}
|
||||||
|
|
||||||
NSUInteger footerViewSize = kMinPreviousVersionButtonHeight;
|
NSUInteger footerViewSize = kMinPreviousVersionButtonHeight;
|
||||||
NSUInteger frameHeight = self.view.frame.size.height;
|
NSUInteger frameHeight = self.view.frame.size.height;
|
||||||
@ -206,7 +210,11 @@
|
|||||||
if ([appVersion.notes length] > 0) {
|
if ([appVersion.notes length] > 0) {
|
||||||
cell.webViewContent = [NSString stringWithFormat:@"<p><b>%@</b>%@<br/><small>%@</small></p><p>%@</p>", [appVersion versionString], installed, dateAndSizeString, appVersion.notes];
|
cell.webViewContent = [NSString stringWithFormat:@"<p><b>%@</b>%@<br/><small>%@</small></p><p>%@</p>", [appVersion versionString], installed, dateAndSizeString, appVersion.notes];
|
||||||
} else {
|
} else {
|
||||||
cell.webViewContent = [NSString stringWithFormat:@"<div style=\"min-height:200px;vertical-align:middle;text-align:center;\">%@</div>", BITHockeyLocalizedString(@"UpdateNoReleaseNotesAvailable")];
|
if ([self.updateManager isPreiOS7Environment]) {
|
||||||
|
cell.webViewContent = [NSString stringWithFormat:@"<div style=\"min-height:200px;vertical-align:middle;text-align:center;\">%@</div>", BITHockeyLocalizedString(@"UpdateNoReleaseNotesAvailable")];
|
||||||
|
} else {
|
||||||
|
cell.webViewContent = [NSString stringWithFormat:@"<div style=\"min-height:130px;vertical-align:middle;text-align:center;\">%@</div>", BITHockeyLocalizedString(@"UpdateNoReleaseNotesAvailable")];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cell.webViewContent = [NSString stringWithFormat:@"<p><b>%@</b>%@<br/><small>%@</small></p><p>%@</p>", [appVersion versionString], installed, dateAndSizeString, [appVersion notesOrEmptyString]];
|
cell.webViewContent = [NSString stringWithFormat:@"<p><b>%@</b>%@<br/><small>%@</small></p><p>%@</p>", [appVersion versionString], installed, dateAndSizeString, [appVersion notesOrEmptyString]];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user