• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Combining pan, zoom, and rotate gestures into one?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Combining pan, zoom, and rotate gestures into one?


  • Subject: Re: Combining pan, zoom, and rotate gestures into one?
  • From: Jonathan Hull <email@hidden>
  • Date: Fri, 14 Jun 2013 20:25:09 -0700

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 7:26 PM, Rick Mann <email@hidden> wrote:

> 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


_______________________________________________

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


References: 
 >Combining pan, zoom, and rotate gestures into one? (From: Rick Mann <email@hidden>)
 >Re: Combining pan, zoom, and rotate gestures into one? (From: David Rowland <email@hidden>)
 >Re: Combining pan, zoom, and rotate gestures into one? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Combining pan, zoom, and rotate gestures into one?
  • Next by Date: First Responder on iOS
  • Previous by thread: Re: Combining pan, zoom, and rotate gestures into one?
  • Next by thread: Re: Combining pan, zoom, and rotate gestures into one?
  • Index(es):
    • Date
    • Thread