Is it possible to setup UITapGestureRecogniser for touch down event? Default is touch up…
Is it possible to setup UITapGestureRecogniser for touch down event? Default is touch up…
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, that’s not possible, but it shouldn’t be hard to subclass
UIGestureRecognizerto create your own recognizer that does that.You could also use a
UILongPressGestureRecognizerwith theminimumPressDurationproperty set to0.0. Note however that your action will then be called continuously when the touch moves, so make sure to check that thestateof the recognizer isUIGestureRecognizerStateBeganin the action (this will only be once).