• 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: Supporting rotation and zoom gestures with autolayout?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Supporting rotation and zoom gestures with autolayout?
      • From: Rick Mann <email@hidden>
References: 
 >Supporting rotation and zoom gestures with autolayout? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Isolated process for each NSDocument of my app
  • Next by Date: Re: Supporting rotation and zoom gestures with autolayout?
  • Previous by thread: Supporting rotation and zoom gestures with autolayout?
  • Next by thread: Re: Supporting rotation and zoom gestures with autolayout?
  • Index(es):
    • Date
    • Thread