Re: Group CGAffineTransform Animations?
Re: Group CGAffineTransform Animations?
- Subject: Re: Group CGAffineTransform Animations?
- From: David Duncan <email@hidden>
- Date: Wed, 17 Jun 2009 13:50:50 -0700
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.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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