From 92bd20790d7237c1a321788ac852fe852cdb7b38 Mon Sep 17 00:00:00 2001 From: Heberti Almeida Date: Mon, 31 Aug 2015 00:43:52 -0300 Subject: [PATCH] Fix context fill color Now is possible to use colors with alpha for tintColor. Ref: http://stackoverflow.com/a/3743283/517707 --- TGPControls/TGPDiscreteSlider7.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TGPControls/TGPDiscreteSlider7.m b/TGPControls/TGPDiscreteSlider7.m index 9eb26b7..2447268 100644 --- a/TGPControls/TGPDiscreteSlider7.m +++ b/TGPControls/TGPDiscreteSlider7.m @@ -319,7 +319,7 @@ static CGSize iosThumbShadowOffset = (CGSize){0, 3}; } } // iOS UISlider aka ComponentStyleIOS does not have ticks - CGContextSetFillColor(ctx, CGColorGetComponents([self.tintColor CGColor])); + CGContextSetFillColorWithColor(ctx, [self.tintColor CGColor]); CGContextFillPath(ctx); // For colored track, we overlay a CALayer, which will animate along with the cursor