• 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: Device/Resolution independent positioning of GUI items on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Device/Resolution independent positioning of GUI items on iOS


  • Subject: Re: Device/Resolution independent positioning of GUI items on iOS
  • From: Alex Zavatone <email@hidden>
  • Date: Mon, 19 Mar 2012 17:04:43 -0400

On Mar 19, 2012, at 4:43 PM, Sebastian Celis wrote:

> viewDidLayoutSubviews (iOS-5-only).
> * When you layout your subviews, do so given the current size of your
> superview. Don't hardcode your view's width to be 320 just because you
> are doing iPhone development and you know your subview takes up the
> entire width of your screen. If you know that your view should be the
> entire width of the superview, set the width to be the current width
> of the superview.


AHA!  That's what I was looking for.

> * Always set appropriate autoresizing masks.

Noted.  Thank you very much.

I'm moving many things into my own drawing classes, so this will allow me to set this once and it will always be used when my routines are called.



- Alex Zavatone



_______________________________________________

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: 
 >Device/Resolution independent positioning of GUI items on iOS (From: Alex Zavatone <email@hidden>)
 >Re: Device/Resolution independent positioning of GUI items on iOS (From: Sebastian Celis <email@hidden>)

  • Prev by Date: Re: Device/Resolution independent positioning of GUI items on iOS
  • Next by Date: Re: Device/Resolution independent positioning of GUI items on iOS
  • Previous by thread: Re: Device/Resolution independent positioning of GUI items on iOS
  • Next by thread: Moving connections to new object
  • Index(es):
    • Date
    • Thread