Commit 0bda8227 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

library: iOS 6 toolbar appearance fix

parent af6d5cc9
......@@ -128,10 +128,12 @@
[self setToolbarItems:@[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil], [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"BUTTON_RENAME", @"") style:UIBarButtonItemStyleBordered target:self action:@selector(renameSelection)], [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil], [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemTrash target:self action:@selector(deleteSelection)]]];
self.navigationController.toolbar.barStyle = UIBarStyleBlack;
self.navigationController.toolbar.tintColor = [UIColor whiteColor];
if (SYSTEM_RUNS_IOS7_OR_LATER)
if (SYSTEM_RUNS_IOS7_OR_LATER) {
self.navigationController.toolbar.tintColor = [UIColor whiteColor];
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
} else
[self.navigationController.toolbar setBackgroundImage:[UIImage imageNamed:@"bottomBlackBar"] forToolbarPosition:UIToolbarPositionAny barMetrics:UIBarMetricsDefault];
}
- (void)viewWillAppear:(BOOL)animated
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment