• 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: Group CGAffineTransform Animations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Group CGAffineTransform Animations?


  • Subject: Re: Group CGAffineTransform Animations?
  • From: WT <email@hidden>
  • Date: Wed, 17 Jun 2009 22:58:15 +0200

On Jun 17, 2009, at 10:50 PM, David Duncan wrote:

On Jun 17, 2009, at 7:21 AM, Chunk 1978 wrote:

premiss: a red cube, 50 width x 50 height, located at {0,0}. i want to scale the cute 2 times it's width and height, move it to the center of the screen, and rotate it 90ยบ

In general you will have a better understanding of what is going on in your application if you stick to using transforms to scale & rotate your views, rather than to move your views (i.e. translation). It is fully supported to use translation, and necessary for certain types of animation, but if your goal is to move a view to the center of the screen (for example) then setting the view's center to the center of the screen is a saner approach than using the transform matrix to do it.

Hi David,

my understanding was that the OP wanted to do all three operations concurrently. Of course, if he wants simply to move, then scale, and then rotate, there are easier ways to accomplish that than to use transforms.

Wagner_______________________________________________

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: Group CGAffineTransform Animations?
      • From: David Duncan <email@hidden>
References: 
 >Group CGAffineTransform Animations? (From: Chunk 1978 <email@hidden>)
 >Re: Group CGAffineTransform Animations? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Group CGAffineTransform Animations? (From: Chunk 1978 <email@hidden>)
 >Re: Group CGAffineTransform Animations? (From: Chunk 1978 <email@hidden>)
 >Re: Group CGAffineTransform Animations? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Group CGAffineTransform Animations? (From: Chunk 1978 <email@hidden>)
 >Re: Group CGAffineTransform Animations? (From: Chunk 1978 <email@hidden>)
 >Re: Group CGAffineTransform Animations? (From: David Duncan <email@hidden>)

  • Prev by Date: MDSchemaCopyAllAttributes() returning nil
  • Next by Date: Re: Group CGAffineTransform Animations?
  • Previous by thread: Re: Group CGAffineTransform Animations?
  • Next by thread: Re: Group CGAffineTransform Animations?
  • Index(es):
    • Date
    • Thread