Commit c27b3b5e authored by Soomin Lee's avatar Soomin Lee Committed by Jean-Baptiste Kempf

iOS: Replace secondFixedSpace by a single fixedSpace

The secondFixedSpace was not initialized properly and since we need to have
the same space between each item, it could be replaced by a single fixed space.

Close #19Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 27761dd7
......@@ -209,8 +209,6 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
UIBarButtonItem *fixedSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
fixedSpace.width = 20;
UIBarButtonItem *secondFixedSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
fixedSpace.width = 20;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
fixedSpace.width *= 2;
......@@ -223,7 +221,7 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
[UIBarButtonItem themedDarkToolbarButtonWithTitle:NSLocalizedString(@"BUTTON_RENAME", nil) target:self andSelector:@selector(renameSelection)],
[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil],
_removeFromFolderBarButtonItem,
secondFixedSpace,
fixedSpace,
_deleteSelectedBarButtonItem]];
self.navigationController.toolbar.barStyle = UIBarStyleBlack;
self.navigationController.toolbar.tintColor = [UIColor whiteColor];
......
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