In my iPhone app I use beginTrackingWithTouch, etc. to handle a swipe and 
rotate an OpenGL object. I wanted to add pinch and rotate gestures to do the 
obvious things. I created a UIRotationGestureRecognizer and a 
UIPinchGestureRecognizer, added them to the control view and wrote the action 
methods. They worked just fine.

Then I realized that they operated exclusively. That is, once a rotation was 
recognized a pinch would not be recognized until the touch set was ended and 
another begun. The delegate method 
shouldRecognizeSimultaneouslyWithGestureRecognizer is there to let you specify 
that both should be handled, so I wrote one that simply returns YES.

That also works, but I see an odd behavior. The app works normally until I do a 
pinch-rotate. From then on all touches seem to be greatly delayed, a 
significant fraction of a second. Does the "simultaneous" method invoke 
something that hangs around and impedes touches?

thanks for any comments,

David

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to