fix update button not appearing

first set the button to the ivar,
then apply the state

Signed-off-by: Andreas Linde <mail@andreaslinde.de>
This commit is contained in:
Stephan Diederich
2012-08-31 12:20:58 +02:00
committed by Andreas Linde
parent 561298ddcc
commit 994812ee43

View File

@@ -367,9 +367,9 @@
storeButton.buttonDelegate = self;
[self.tableView.tableHeaderView addSubview:storeButton];
storeButton.buttonData = [PSStoreButtonData dataWithLabel:@"" colors:[PSStoreButton appStoreGrayColor] enabled:NO];
self.appStoreButtonState = AppStoreButtonStateCheck;
[storeButton alignToSuperview];
_appStoreButton = [storeButton retain];
self.appStoreButtonState = AppStoreButtonStateCheck;
}
- (void)viewWillAppear:(BOOL)animated {