Re: iPad drawing and screen rotation
Re: iPad drawing and screen rotation
- Subject: Re: iPad drawing and screen rotation
- From: David Duncan <email@hidden>
- Date: Sun, 23 Sep 2012 02:31:13 -0400
On Sep 21, 2012, at 3:18 PM, Donald Hall <email@hidden> wrote:
> I have a master detail project where I draw Bezier paths in the detail view. On rotation from portrait to landscape (or vice versa) the proportions of the drawings are distorted. For example, a circle in one orientation becomes an oval in the other. What is the best way to maintain the aspect ratio of my drawings through screen rotation? Should I be embedding a second view to take the drawing in the detail view and adjusting the autosizing of this second view to keep it a fixed size?
What is the contentMode of your view? The default is (if I recall correctly) UIViewContentModeResize, which will not redraw when the view's bounds changes, but rather stretch the contents to match.
--
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