views:

768

answers:

2

i want to fire a timer as user slides the slider when the touch ends. is there a way to handle touch events of uislider?

+1  A: 

Make sure your slider's continuous property is set to YES; then use -addTarget:action:forControlEvents: with... UIControlEventValueChanged?... in the usual way. The slider should continuously call whatever action method you give it.

Noah Witherspoon
i know this method.i just want to fire timer when user stopped dragging the slider
Shweta Simply
Try `UIControlEventEditingDidEnd`, then.
Noah Witherspoon
+1  A: 

I set the continuous property to NO and kept UIControlEventValueChanged and it manages to only fire off the event when the user releases the slider