Re: Xcode 7.3.1: Auto Layout drives me crazy
Re: Xcode 7.3.1: Auto Layout drives me crazy
- Subject: Re: Xcode 7.3.1: Auto Layout drives me crazy
- From: Peter Tomaselli <email@hidden>
- Date: Wed, 18 May 2016 17:46:25 -0400
I had a similar problem with an iOS project recently (sounds like yours is OS X?) and it took me quite a while to figure out.
Sort of like Quincey said: three labels in a horizontal line, under horizontal compression, where each label has the same compression resistance. I didn't get any warnings, and the view rendered correctly in IB, but went haywire in the simulator, especially when rotating.
Anyway, the resistances needed to be different values because otherwise it was ambiguous which one should shrink. Makes sense to me now but I really would have loved a warning there.
My understanding of Auto Layout is pretty basic so perhaps this is something everyone else already knows, but I figured I’d mention it.
> On May 18, 2016, at 1:54 PM, Ulf Dunkel <email@hidden> wrote:
>
> How can I debug Auto Layout issues when the Assistant Editor's Preview shows that everything seems to be fine?
>
> Any hints are really appreciated.
>
> ---Ulf Dunkel
> ______________________________________________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden