+ Fixes an iOS6 Crash in the gallery-component.

This commit is contained in:
moritz haarmann 2014-04-11 16:52:41 +02:00
parent 5e7ff0043f
commit cf17b298a7

View File

@ -36,10 +36,12 @@
- (void)viewDidLoad - (void)viewDidLoad
{ {
[super viewDidLoad]; [super viewDidLoad];
self.automaticallyAdjustsScrollViewInsets = NO;
self.navigationController.navigationBar.translucent = YES; self.navigationController.navigationBar.translucent = YES;
#if __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_6_1
self.automaticallyAdjustsScrollViewInsets = NO;
self.edgesForExtendedLayout = YES; self.edgesForExtendedLayout = YES;
self.extendedLayoutIncludesOpaqueBars = YES; self.extendedLayoutIncludesOpaqueBars = YES;
#endif
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButtonItemStylePlain target:self action:@selector(close:)]; 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:)]; self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(share:)];