Re: Group CGAffineTransform Animations?
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