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:33 -0400
Well, let's put it this way; there are other things that need to be cleaned up - like 900 lines of code that are called on viewWillAppear in one class, 8 printed pages of warnings as well as a mix of XML, JSON and comma delimited data structures that are fetched ala http on startup.
Looking at all the other cases of how stuff is put together in this app, I thought it safest to ask the people who have been doing this longer rather than just proceed along thinking everything's just fine with this approach.
Ya, I've actually gone in and modified the XML before to reposition elements and wasn't sure I had the full grasp on how Xcode/Cocoa does it. I thought it might be relative to a base coordinate system and then at runtime, a 1.x multiplier might be applied to the plane that the controls are drawn upon. But, I never had the time to rip through it all and get to the bottom of it all.
So, sweet. Thanks a bunch.
On Mar 19, 2012, at 4:22 PM, Brian Lambert wrote:
> Hi Alex,
>
> Regarding you having to "repair" code where "UI elements that have been hardcoded in place with the approach of: Just define the CGRect and we're all good." I think you're seeing things as being "gross" when they are not.
_______________________________________________
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