autoresizingMask and transformation
autoresizingMask and transformation
- Subject: autoresizingMask and transformation
- From: Tales Pinheiro De Andrade <email@hidden>
- Date: Sun, 31 Jul 2011 23:18:34 -0300
Hello,
I have a custom view that have a square subview. The superview is stretched in both directions when the device is rotated.
The subview has autoresizingMask=UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
If I just rotate the device, everything is OK. But the subview can be rotated via CGAffineTransform. So, if I rotate the subview and after that I rotate the device, the subview get distorted.
What I'm supposed to do so the subview just get the correct rotation AND the correct proportion to the subview?
Thank you
Tales Pinheiro de Andrade
_______________________________________________
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