Re: Moving a UIView when has a CAAffineTransformationRotate
Re: Moving a UIView when has a CAAffineTransformationRotate
- Subject: Re: Moving a UIView when has a CAAffineTransformationRotate
- From: Gustavo Pizano <email@hidden>
- Date: Wed, 1 Dec 2010 23:53:19 +0100
Hello again.
I was reading the docs, and it says precisely what David said, if I rotate a view, but i wan to know it's original dimensions width and height, how can I get them? because after rotating the view those width and height that comes form the frame, are not the same, and well the docs clearly says its undefined.
Thanks
Gustavo
On Nov 30, 2010, at 7:11 PM, David Duncan wrote:
> On Nov 30, 2010, at 9:49 AM, Gustavo Pizano wrote:
>
>> Any help or tip may be appreciate, my linear algebra is not that good ... :SS I wanna cry...
>
>
> Move the center instead of the frame. The frame is derived from the center, bounds.size and transform, so once you've placed a transform on the view the frame is a much less reliable means of making adjustments to the view.
> --
> David Duncan
>
_______________________________________________
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