Re: Still can't get autolayout to work the way I want
Re: Still can't get autolayout to work the way I want
- Subject: Re: Still can't get autolayout to work the way I want
- From: Kevin Muldoon <email@hidden>
- Date: Thu, 19 Sep 2013 18:29:01 -0400
I love the power of auto-layout, but I'll be damned if I can make it behave when working on the GUI .xib file. I've taken to using auto-layout without .xib, building the UI elements in the viewController.m and attaching NSLayoutContraints manually. It's a bit of a pain, but if the layout is complicated I think it's time saved.
On Sep 19, 2013, at 6:18 PM, Brad O'Hearne <email@hidden> wrote:
> On Sep 19, 2013, at 2:45 PM, Rick Mann <email@hidden> wrote:
>
>> I am never able to get this shit right 100% of the time, and I don't know if it's because I'm doing something wrong, or iOS is broken and I need to do something else.
>
> As a second to Rick's request, auto-layout has given me fits on both iOS and OS X. I have not found the Auto-Layout Guide doc or various blog / other posts or WWDC sessions (unless I missed one that had this in it) on it to be a silver bullet. I find the pre-autolayout springs/struts approach to be easy to understand, but more importantly, it behaves consistently and the IB UI doesn't seem to get confused. With auto-layout, I've had no such success -- the IB UI seems to have a will of its own, and the UI seems to continually generate or change various things inexplicably in response to what are by all other indications proper constraints you create.
>
> If anyone out there has THE definitive guide on how to use auto-layout and accomplish various common use cases of relative resizing, you have money waiting in my wallet.
>
> Thanks,
>
> Brad
> _______________________________________________
>
> 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
_______________________________________________
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