Re: Auto Layout Problems
Re: Auto Layout Problems
- Subject: Re: Auto Layout Problems
- From: Dave <email@hidden>
- Date: Thu, 27 Aug 2015 16:17:02 +0100
Hi,
> 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.
I actually get what it’s trying to do, it’s the XCode interface that is just plain Naff! It adds constraints more than once and it’s next to impossible to update them, so I end up deleting everything and started over.
The thing is I can do what I want to do without using AutoLayout, so I’m wondering why I’m bothering to put myself through this pain for no real gain, especially when it’s just a Naff implementation of the UI in XCode that is causing the problems. I’m wondering if it might be better forget about XCode/IB and do it all manually in code, but if I do that, I may as well just ditch it and go back to the old ways of doing things.
I’m really disappointed to discover what a mess it is to be honest, especially after reading all the hype about it…….
Cheers
Dave
> On 27 Aug 2015, at 16:06, Thomas Wetmore <email@hidden> wrote:
>
> 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