0

I want to create two custom UISlider look like below, the first will adjust track height, the second will adjust transparency, can anyone help?

enter image description here

newszer
  • 440
  • 1
  • 4
  • 23

1 Answers1

0

It is possible to use custom images for the slider track and the handle. Have a look at his post for starters: iOS - custom image for UISlider

Lutz
  • 1,734
  • 9
  • 18
  • Are there any ovverride function in UISlider can achieve this? Or I must get the background png of the UISlider track? – newszer Apr 04 '19 at 07:10
  • I don't want to seem rude, but did you actually have a look at the link provided in tha ansewer, the solutions discussed in that post and (maybe also) the `UISlider` documentation? – Lutz Apr 04 '19 at 07:30
  • Never mind, I have read it, I mean the solution needs to set the image, my question is must I get the background image, or can I draw the image in some override function, but now I have gotten the background image – newszer Apr 12 '19 at 08:29