diff options
author | Paul Gardiner <paul.gardiner@artifex.com> | 2014-04-01 10:56:51 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-04-02 14:22:46 +0200 |
commit | 956dfdaff13c32ae2bb3f73dd4ca696ec1166076 (patch) | |
tree | 39aaa0edfa1a647b6fbca072472ddd698e5ea97e /platform/ios | |
parent | 5ee2c85fb269b97fa5e4d293fc0df2fa03265d7c (diff) | |
download | mupdf-956dfdaff13c32ae2bb3f73dd4ca696ec1166076.tar.xz |
iOS: in 7.0 and above, allow the system to tint our custom menu buttons
Diffstat (limited to 'platform/ios')
-rw-r--r-- | platform/ios/Classes/TapImage.m | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |