I need to move, rotate and zoom an UIImageView object. In the method…
touchesBegan(NSSet *)touches withEvent:(UIEvent *)event
which touches do I have to use?
(NSSet *)touches
or
event.allTouches
In other words, where are my touches?
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.
touchespassed as the parameter are the touches in your view.event.allTouchescontains all the touches of the event, even the one that didn’t start in your view.Don’t hesitate to read the Event Handling Guide for iOS in Apple’s doc, it is explained with some pictures it will probably help you understand better.
Especially the difference between the
touchesin the parameters andevent.allTouchesis described here 😉