mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Merge pull request #5 from bitstadium/workaround-uikit-bug
fix update button state
This commit is contained in:
commit
504487ad12
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user