Re: Auto Layout Problems
Re: Auto Layout Problems
- Subject: Re: Auto Layout Problems
- From: Thomas Wetmore <email@hidden>
- Date: Thu, 27 Aug 2015 11:06:15 -0400
Dave,
I have had some great frustrations understanding and then debugging auto-layout issues. I have an application that now can present an arbitrary number of moveable, resizable and overlappable views, which have a fairly rich class hierarchy themselves, within a containing view. I had to dance down a long and very merry path to get all that to work with auto-layout. Looking at demos, looking at WWDC videos, reading sample code, reading documentation, and one judicious post here is what got me over the hump. There is no substitute for lots of hard work and lots of frustration. I’d recommend that you just keep plugging away. That’s what all of us have had to do.
The more I have gotten into auto-layout the more I am grokking the underlying linear algebra, and the more I am understanding what’s going on.
For anything complicated veiw-wise, auto-layout has, IMHO, a very steep learning curve. However, it works well and does some marvelous things.
Tom Wetmore
> On Aug 27, 2015, at 10:38 AM, Dave <email@hidden> wrote:
>
> Hi,
>
> Has anyone successfully managed to make auto-layout do anything other than the most simplest case work? This is a Mac project using XCode 6.4 and I’m having all kind of trouble.
>
> For instance, I click on a control and add a constraint to Top, Bottom, Left, Right of a view and fix the Width and Height, them click add constraints. If I later click on this view again and select Add contestants, rather than showing me what is set, shows that no constraints have been added. If I add them again, rather than replacing the old constraints it adds them all again, so I end up with two lots of constraints! Is this expected?
>
> I’m been trying to get get my head around this for a 1.5 days now and I’m in the verge of getting rid of Auto-Layout altogether and going back to the old way of doing things which has the added advantage of actually working. I’m totally shocked that after all the hype on how great it is, it actually sucks big time when you try to do something non-trivial. As usual I’m sure that actual Auto-Layout implementation its just the XCode side of things that sucks as usual.
>
> If anyone knows of a good tutorial I’d be happy to hear about it or maybe Auto-Layout is just FooBar’ed in XCode 6.4?
>
> Cheers
> Dave
>
>
> _______________________________________________
> 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
_______________________________________________
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