Question

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

Était-ce utile?

La solution

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];
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top