Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made the workaround more obvious

  • Loading branch information...
commit 4296e350ea2f18f78cf1f51992c4b1eeb35d9621 1 parent 0b95be1
@royclarkson royclarkson authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 src/Classes/Views/CustomToolbar.m
View
11 src/Classes/Views/CustomToolbar.m
@@ -38,13 +38,12 @@ - (void)drawRect:(CGRect)rect
// warning, workaround ahead...
// The tint is not being applied correctly to UIBarButtonItems
// see http://www.openradar.me/8121374
- for (UIBarButtonItem *item in self.items)
- {
- if (item.style == UIBarButtonItemStyleBordered)
+ for (UIBarButtonItem *buttonItem in self.items)
+ {
+ if ([buttonItem respondsToSelector:@selector(setTintColor:)])
{
- item.style = UIBarButtonItemStylePlain;
- item.style = UIBarButtonItemStyleBordered;
- }
+ [buttonItem performSelector:@selector(setTintColor:) withObject:color];
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.