iPhone : How to detect the end of slider drag?

DroidHeaven picture DroidHeaven · Feb 22, 2012 · Viewed 64.7k times · Source

How to detect the event when the user has ended the drag of a slider pointer?

Answer

Rok Jarc picture Rok Jarc · Feb 22, 2012

If you don't need any data inbetween drag, than you should simply set:

[mySlider setContinuous: NO];

This way you will receive valueChanged event only when the user stops moving the slider.

Swift 5 version:

mySlider.isContinuous = false