From 956dfdaff13c32ae2bb3f73dd4ca696ec1166076 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Tue, 1 Apr 2014 10:56:51 +0100 Subject: iOS: in 7.0 and above, allow the system to tint our custom menu buttons --- platform/ios/Classes/TapImage.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'platform/ios/Classes') diff --git a/platform/ios/Classes/TapImage.m b/platform/ios/Classes/TapImage.m index 09c85189..1a43813e 100644 --- a/platform/ios/Classes/TapImage.m +++ b/platform/ios/Classes/TapImage.m @@ -7,6 +7,8 @@ static const NSTimeInterval TapDuration = 0.05; - (id)initWithResource:(NSString *)resource target:(id)targ action:(SEL)selector { UIImage *image = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:resource ofType:@"png"]]; + if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) + image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; self = [super initWithImage:image]; if (self) { -- cgit v1.2.3