Is there a way to subclass just the knob for iOS slider (if yes, how: can you point to a tutorial) or does one has to create the whole slider from scratch ?
Asked
Active
Viewed 3,380 times
0
-
Check out this thread: http://stackoverflow.com/questions/2379326/change-iphone-uislider-bar-image – AlexanderN Feb 04 '12 at 15:06
-
Thanks for the link didn't find it when searching. – user310291 Feb 04 '12 at 17:38
1 Answers
5
Apple's documentation for UISlider indicates that the thumb is customizable. You need to set the currentThumbImage property and override - (CGRect)thumbRectForBounds:(CGRect)bounds trackRect:(CGRect)rect value:(float)value
in a UISlider subclass.