Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone : How to detect the end of slider drag?

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

like image 285
DroidHeaven Avatar asked Feb 22 '12 06:02

DroidHeaven


1 Answers

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 
like image 114
Rok Jarc Avatar answered Sep 19 '22 00:09

Rok Jarc