0

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 ?

vikingosegundo
  • 52,040
  • 14
  • 137
  • 178
user310291
  • 36,946
  • 82
  • 271
  • 487

1 Answers1

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.

Emil
  • 7,220
  • 17
  • 76
  • 135
bneely
  • 9,083
  • 4
  • 38
  • 46