iPhone:如何检测滑块拖动的结束? [英] iPhone : How to detect the end of slider drag?
本文介绍了iPhone:如何检测滑块拖动的结束?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当用户结束拖动滑块指针时如何检测事件?
How to detect the event when the user has ended the drag of a slider pointer?
推荐答案
如果不这样做需要拖拽之间的任何数据,而不是简单地设置:
If you don't need any data inbetween drag, than you should simply set:
[mySlider setContinuous: NO];
这样您只会收到 valueChanged
事件当用户停止移动滑块时。
This way you will receive valueChanged
event only when the user stops moving the slider.
这篇关于iPhone:如何检测滑块拖动的结束?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文