I’m using a UISlider in my app but I’d like to use a custom “look-and-feel” for it. I have changed the thumb to my own image but is there a way to change the bar also? I have a bar image I would like to use but can’t see how to do this.
I have found how to change the max and min image but not the bar itself.
You were right to use
-setMinimumTrackImage:forState:and-setMaximumTrackImage:forState:methods. What you missed is that you should provide stretchableUIImageto them, the rest is taken care of automagically:You can use the same image for both the min and max parts.