문제

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

도움이 되었습니까?

해결책

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];
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top