Search code examples
iosiphoneobjective-cuisliderios7.1

iOS 7.1 UISlider setThumbTintColor


[slider setThumbTintColor:color] has no effect in iOS 7.1.

Is there any workaround for setting the thumb color to any random color (not an image)?

EDIT

The thumb size is smaller when using tint color:

  • with tint: enter image description here
  • without tint: enter image description here

Solution

  • [self.slider setThumbImage:[UIImage imageNamed:@"Thumb.png"] forState:UIControlStateNormal];
    self.slider.thumbTintColor = [UIColor blackColor];
    

    Can you try like this

    Image links :

    1x: https://i.sstatic.net/pjgvn.png 2x: https://i.sstatic.net/VIMT5.png