Merge pull request #5 from bitstadium/workaround-uikit-bug

fix update button state
This commit is contained in:
Andreas Linde 2012-08-31 06:27:46 -07:00
commit 504487ad12

View File

@ -209,6 +209,14 @@
_cells = [[NSMutableArray alloc] initWithCapacity:5];
_popOverController = nil;
//might be better in viewDidLoad, but to workaround rdar://12214613 and as it doesn't
//hurt, we do it here
if (self.modal) {
self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
target:self
action:@selector(onAction:)] autorelease];
}
}
return self;
}
@ -356,12 +364,6 @@
self.tableView.tableHeaderView = _appStoreHeader;
if (self.modal) {
self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
target:self
action:@selector(onAction:)] autorelease];
}
PSStoreButton *storeButton = [[[PSStoreButton alloc] initWithPadding:CGPointMake(5, 40)] autorelease];
storeButton.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
storeButton.buttonDelegate = self;