Re: Supporting rotation and zoom gestures with autolayout?
Re: Supporting rotation and zoom gestures with autolayout?
- Subject: Re: Supporting rotation and zoom gestures with autolayout?
- From: Kyle Sluder <email@hidden>
- Date: Thu, 13 Jun 2013 14:13:16 -0700
On Thu, Jun 13, 2013, at 01:52 PM, Rick Mann wrote:
> I'm still having trouble implementing two-finger rotation and zoom
> gestures inside a UIScrollView with autolayout.
>
> I have a large image that I want the user to be able to pinch zoom, and
> rotate, and pan around in. I can't see what constraints to use to make
> this work without it resizing the entire ancestral view chain.
>
> Any advice or suggestions would be appreciated.
During pinching and zooming, remove all constraints involving the view,
turn on translatesAutoresizingMaskIntoConstraints for that view, and
directly manipulate its bounds and rotation. Reinstall the constraints
when you're done.
--Kyle Sluder
_______________________________________________
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