Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UISlider minimum and maximum track tint clear color iOS 7.1 bug

I seem to be having an issue that I was not having using iOS 7.0 in my app, it now only appears on iOS 7.1. The problem I'm having is that when I set the minimum and maximum trackTintColor properties to a clear color, I'm now left with what I call an "artifact" to the left of the UISlider that was not present on iOS 7.0. I've tried to iterate through the sublayers and or subviews to set this "artifact" to a clear color, but I cannot seem to hide it. I'm attaching a screenshot below with an arrow pointing to the "artifact".

Any help is greatly appreciated!

enter image description here

like image 293
klcjr89 Avatar asked Mar 20 '14 02:03

klcjr89


1 Answers

Okay so I solved this already by using these two lines of code replacing the trackTintColor properties altogether:

[self.colorSlider setMinimumTrackImage:[UIImage new] forState:UIControlStateNormal];
[self.colorSlider setMaximumTrackImage:[UIImage new] forState:UIControlStateNormal];
like image 115
klcjr89 Avatar answered Oct 19 '22 08:10

klcjr89