I want to switch between a couple views with a flick gesture using two fingers. If anyone can tell me what I need to do please help.
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.
Without actually writing the code for you, here’s what you’ll need to do to track a multi-finger swipe:
multipleTouchEnabledproperty to YES so that you’ll be able to track multiple touches.touchesBegan, store the each touches’locationInViewproperty (this is aCGPoint).touchesMoved, compare the current location of the touches with the stored starting locations from step 2. If they’re still in the “swipe window,” do nothing. If one or both of the fingers has moved outside of its “swipe window,” then cancel the swipe checking. If they’ve both met the requirements for a swipe, fire whatever method you want to have called when you’ve detected a multi-finger swipe.Hope this helps.