Detect double-tap on UISlider?

Posted by Randy on Stack Overflow See other posts from Stack Overflow or by Randy
Published on 2009-09-08T07:48:24Z Indexed on 2010/05/02 21:37 UTC
Read the original article Hit count: 203

Filed under:
|
|

I can detect single/double-taps in specific views with:

NSSet *myTouches = [event touchesForView:mySpecificView.view];

but I want to detect a double-tap on the button of a slider and can't find any reference to it. Is there a replacement for "touchesForView:" where I can enter the name of my slider?

usage: I have three sliders with their default value being directly in the center of the slider. Once the position of the slider has changed, I want a quick way to individually reset each slider to its default position.

I currently have each slider's containing view set to respond to a double-tap, updating each slider. It works fine, but doesn't seem natural. ie.I can't double-tap on the slider itself because the slider intercepts the taps and doesn't pass them on to the surrounding view.

thanks in advance

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uislider