mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-29 11:25:38 +00:00
+ Fixes an iOS6 Crash in the gallery-component.
This commit is contained in:
parent
5e7ff0043f
commit
cf17b298a7
@ -36,10 +36,12 @@
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
self.automaticallyAdjustsScrollViewInsets = NO;
|
||||
self.navigationController.navigationBar.translucent = YES;
|
||||
#if __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_6_1
|
||||
self.automaticallyAdjustsScrollViewInsets = NO;
|
||||
self.edgesForExtendedLayout = YES;
|
||||
self.extendedLayoutIncludesOpaqueBars = YES;
|
||||
#endif
|
||||
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButtonItemStylePlain target:self action:@selector(close:)];
|
||||
|
||||
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(share:)];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user