0

When I customized UISlider and override the minimumTrackTintColor, maximumTrackTintColor, and trackHeight, I noticed the slider had a strange offset when the value approaches the end of the slider.

However, there is no offset when slider is in the middle range. Any idea how to fix it?

Offset when approaching the end: slider offset

Normal in the middle range: normal slider

Slayter
  • 1,172
  • 1
  • 13
  • 26
azureric
  • 3
  • 3
  • 2
    check this [answer](https://stackoverflow.com/questions/8656122/iphone-custom-uislider-preload-and-rounded-edges-issues) out – Aquila Sagitta Jul 13 '17 at 19:11
  • @AquilaSagitta thanks, but in my case, I am using `maximumTrackTintColor ` and `minimumTrackTintColor ` - instead of picture. Any idea how could I fix it without using a circular icon? – azureric Jul 13 '17 at 20:42
  • Other than making the slider icon a round image you could try playing with slider frame maybe. Why don't you want to use round image? – Aquila Sagitta Jul 13 '17 at 20:55
  • changed to image - works like a charm. thank you @AquilaSagitta – azureric Jul 14 '17 at 05:25

0 Answers0