From 90c8c6a0cc2c32a2e84c2309df88a43ee74ea4f0 Mon Sep 17 00:00:00 2001 From: Bruno Virlet Date: Thu, 17 Mar 2016 15:43:35 +0100 Subject: [PATCH] Fix inputAccessoryView tint color issue actionBar.tintColor is nil because the action bar is not in the view hierarchy, so this line isn't useful and is actually harmful because it overrides UIAppearance tintColor definitions. --- quickdialog/QEntryTableViewCell.m | 1 - 1 file changed, 1 deletion(-) diff --git a/quickdialog/QEntryTableViewCell.m b/quickdialog/QEntryTableViewCell.m index 959c5b18..6063a5d9 100644 --- a/quickdialog/QEntryTableViewCell.m +++ b/quickdialog/QEntryTableViewCell.m @@ -36,7 +36,6 @@ -(UIToolbar *)createActionBar { _prevNext = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:NSLocalizedString(@"Previous", @""), NSLocalizedString(@"Next", @""), nil]]; _prevNext.momentary = YES; _prevNext.segmentedControlStyle = UISegmentedControlStyleBar; - _prevNext.tintColor = actionBar.tintColor; [_prevNext addTarget:self action:@selector(handleActionBarPreviousNext:) forControlEvents:UIControlEventValueChanged]; UIBarButtonItem *prevNextWrapper = [[UIBarButtonItem alloc] initWithCustomView:_prevNext]; UIBarButtonItem *flexible = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];