Re: Programmatically pinch a UIView
Re: Programmatically pinch a UIView
- Subject: Re: Programmatically pinch a UIView
- From: Carl Hoefs <email@hidden>
- Date: Wed, 11 May 2016 15:04:29 -0700
> On May 11, 2016, at 2:33 PM, Quincey Morris <email@hidden> wrote:
>
> On May 11, 2016, at 14:14 , Carl Hoefs <email@hidden <mailto:email@hidden>> wrote:
>>
>> the UIView that's currently there handles pinch zoom in/out fine.
>
> You should at this point explain what mechanism you’re using to do this.
>
Indeed! I took another look at the gesture recognizer code I had for the UIView subclass, and I simply made an additional method that issued a scale via the same means but by a supplied zoom factor (as opposed to calculating it from the touch points). Voila!
Thanks for the sagely advice, Quincey. I woulda kept on flailing otherwise... :-)
-Carl
_______________________________________________
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