Adjust update view button appearance on iOS 7

This commit is contained in:
Andreas Linde
2013-08-17 17:02:33 +02:00
parent fa009300cf
commit 5b43944128
3 changed files with 68 additions and 23 deletions

View File

@@ -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];