iPhone : How to detect the end of slider drag?

后端 未结 16 2663
不思量自难忘°
不思量自难忘° 2020-12-02 07:36

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

16条回答
  •  半阙折子戏
    2020-12-02 08:27

    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
    

提交回复
热议问题