I am making an iphone app that uses two fingers to place and scale a platform. I need to find the x & y coordinates of BOTH of these touches. How would I go about this. thanks you
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.
You should go through
Gesture Recognizers. Gesture Recognizers are a better approach totouchesBegan:and its siblings if you are developing foriOS 3.2and later. For the purpose of scaling, you can look atUIPinchGestureRecognizer. Also, remember to enable multitouch by setting the view’smultipleTouchEnabledtoYES.