On Jun 14, 2013, at 5:41 PM, Rick Mann rm...@latencyzero.com wrote:
The Apple Maps application allows you to pan, zoom, and rotate in a single
two-finger gesture.
Is that done with three gesture recognizers all operating simultaneously? Or
are they just handling the touches directly?
I
The Apple Maps application allows you to pan, zoom, and rotate in a single
two-finger gesture.
Is that done with three gesture recognizers all operating simultaneously? Or
are they just handling the touches directly?
I don't see how to get a combined transform out of the three separate gesture
Isn't it a matter of implementing this delegate method?
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer
*)otherGestureRecognizer
{
return YES;
}
David
On Jun 14, 2013, at 5:41 PM, Rick Mann
On Jun 14, 2013, at 18:09 , David Rowland rowla...@sbcglobal.net wrote:
Isn't it a matter of implementing this delegate method?
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer
So, this sort of works, and fails spectacularly.
The problem is that I can't specify the order in which each gesture's values
are applied to the view's transform.
So, I end up with a side-to-side panning gesture making the image move
up-and-down when it's rotated about 90°.
On Jun 14, 2013,
Assuming you want to rotate about the center of the object, you probably want
to translate the object so it's center is at the origin, do the rotation, and
then do the inverse of the translation. If you do that, the order of the
recognizers shouldn't matter.
Thanks,
Jon
On Jun 14, 2013, at