Re: Combining pan, zoom, and rotate gestures into one?
Re: Combining pan, zoom, and rotate gestures into one?
- Subject: Re: Combining pan, zoom, and rotate gestures into one?
- From: Rick Mann <email@hidden>
- Date: Fri, 14 Jun 2013 19:26:47 -0700
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, at 18:09 , David Rowland <email@hidden> wrote:
> 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 <email@hidden> 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 don't see how to get a combined transform out of the three separate gesture recognizers.
>>
>> --
>> Rick
>>
>>
>>
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> 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:
>>
>> This email sent to email@hidden
>
--
Rick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden