iPhone : How to detect the end of slider drag?

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

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

16条回答
  •  -上瘾入骨i
    2020-12-02 08:39

    You can use:

    - (void)addTarget:(id)target action:(SEL)action 
                       forControlEvents:(UIControlEvents)controlEvents  
    

    to detect when the touchDown and touchUp events occur in UISlider

提交回复
热议问题