tags:

views:

123

answers:

2

Is it possible to detect another finger touch during one finger is touching on the screen? I need to deal with the gesture of the 2nd finger during which I don't want my first finger to leave the screen. What should be the general logic in the code to handle this?

Thanks.

+2  A: 

Yes. Set your view's multipleTouchEnabled property to yes. Then in your -touchesXXX:…, the first argument (NSSet* touches) will contain 2 elements when 2 fingers are touching the screen.

KennyTM
A: 

^ yup multiTouchEnabled is correct also if tracking movements try to keep track of each of the 2 touchBegin positions and when a touchMove is received their correspondents will most likely correspond to the finger with the closest previous touch position.

davydotcom