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: Charles Srstka <email@hidden>
- Date: Thu, 19 Sep 2013 22:29:18 -0500
On Sep 19, 2013, at 5:50 PM, Kevin Muldoon <email@hidden> wrote:
> Yes, IB does automagically pop in constraints and for simple layouts, it works. But, with more complicated layouts, moving a single element around will rearrange one or more other constraints, generally breaking everything. I'm not familiar with the clear constraints command in IB, but like I was mentioning earlier, I'm avoiding the creation and use of .xib files for anything but the simplest layouts. Maybe iOS7 constraints have improved drastically, I just haven't had the time to dig into it. Anyway, this link is a nice intro into building UI from code with constraints...
>
> http://ioscreator.com/auto-layout-in-ios-6-adding-constraints-through-code/
Not anymore in Xcode 5. As others have pointed out, XC5 no longer adds any constraints automatically, but in addition to that, moving things around doesn't break or change constraints anymore, either. You should give it a try — it's much improved.
Charles
_______________________________________________
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