mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Adjust update view button appearance on iOS 7
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
|
||||
#import "BITUpdateManagerPrivate.h"
|
||||
#import "BITUpdateViewControllerPrivate.h"
|
||||
#import "BITHockeyBaseManagerPrivate.h"
|
||||
|
||||
|
||||
#define kWebCellIdentifier @"PSWebTableViewCell"
|
||||
@@ -323,7 +324,11 @@
|
||||
|
||||
self.tableView.tableHeaderView = _appStoreHeader;
|
||||
|
||||
BITStoreButton *storeButton = [[BITStoreButton alloc] initWithPadding:CGPointMake(5, 58)];
|
||||
BITStoreButtonStyle buttonStyle = BITStoreButtonStyleDefault;
|
||||
if (![self.updateManager isPreiOS7Environment]) {
|
||||
buttonStyle = BITStoreButtonStyleOS7;
|
||||
}
|
||||
BITStoreButton *storeButton = [[BITStoreButton alloc] initWithPadding:CGPointMake(5, 58) style:buttonStyle];
|
||||
storeButton.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
|
||||
storeButton.buttonDelegate = self;
|
||||
[self.tableView.tableHeaderView addSubview:storeButton];
|
||||
|
||||
Reference in New Issue
Block a user