I am trying to change the Color of the Thumb on my UISlider - Somehow though, it always stays white. Changing the Color of the Bar itself seems to work quite well.
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
self.redSlider.thumbTintColor = [UIColor redColor];
}
Am I missing something here?
I also found this Question here, that indicates it could be a bug - any idea?
Yes it's bug. To avoid without preparing dummy image use this code.
[s setThumbImage:s.currentThumbImage forState:UIControlStateNormal];
s.thumbTintColor = UIColor.redColor;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With