In my app I want to detect when the user lift off his second finger and is holding only one on the screen.
The problem is that my touchesEnded:withEvent: shows [[event allTouches] count] to be 2.
How can I detect which one of the touches remains on the screen?
Thanks.
When touch is made by user touchesBegan method triggers. You can keep the pointer to the first touch appeared. It will not be changed until the touch ends.
EDIT:
I assume you have a variable
UITouch *myTouch
in your class that handles touch events.