• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iPad drawing and screen rotation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >iPad drawing and screen rotation (From: Donald Hall <email@hidden>)

  • Prev by Date: Re: toolbar buttons are missing in iOS 6
  • Next by Date: Re: iOS:targeting iOS3 through iOS6
  • Previous by thread: Re: iPad drawing and screen rotation
  • Next by thread: Re: iPad drawing and screen rotation
  • Index(es):
    • Date
    • Thread