Re: Device/Resolution independent positioning of GUI items on iOS
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