iOS UISlider Adding a custom thumb image

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!


To add a custom image for the thumb of the slider, simply call the setThumbImage method with your custom image:

Swift 3.1:

let slider = UISlider()
let thumbImage = UIImage
slider.setThumbImage(thumbImage, for: .normal)

Got any iOS Question?