iosuikituislider

How to detect the end of UISlider drag?


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


Solution

  • 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