I haven’t been able to find a tutorial on how to properly setup a gesture recognizer for iOS.
I need to detect swipe up & down, and the callbacks for them.
Any help, appreciated. Thanks.
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.
You need two recognizers, one for swiping up, and the other for swiping down:
and for the handler:
Finally, you add it to your view:
The same for the other direction (just change all the
Ups toDowns).