Re: How to delete a autolayout constraint in Xcode 6?
Re: How to delete a autolayout constraint in Xcode 6?
- Subject: Re: How to delete a autolayout constraint in Xcode 6?
- From: Roland King <email@hidden>
- Date: Thu, 10 Jul 2014 11:30:03 +0800
> On 10 Jul 2014, at 10:53 am, Gerriet M. Denkmann <email@hidden> wrote:
>
>
> On 10 Jul 2014, at 02:00, Kyle Sluder <email@hidden> wrote:
>
>>
>> On Tue, Jul 8, 2014, at 10:08 PM, Gerriet M. Denkmann wrote:
>>> How to delete a auto layout constraint in Xcode 6?
>>>
>>> I can set the priority to 1, which mostly does what I want, but deleting
>>> would be nice too.
>>> Must be something quite obvious, but I can't find it.
>>
>> You mean selecting it and hitting Delete isn't deleting it?
>
> There are 3 colums in Xcode: "Structure", picture of nib, "Utilities"
>
> I selected a TextField in "Structure", selected the Size Inspector, clicked on the bad constraint and then clicked "Delete".
> Now the TextField got deleted. Not really what I intended.
That’s because with the new in-place editing the thing selected isn’t the constraint, it’s still the TextField so delete deletes it. Used to be you’d hit right-click, edit and then the constraint itself became the selected object, however that left you in a context-less screen with no way back, so the in-place editing is much better. I think having right-click ‘delete constraint’ would be handy however, worthy of a usability bug report.
>
> I since learned that I have to find the offending constraint in the "Structure" column (under Constraints) select it and then click "Delete".
>
> Looking at it again: the TextView has 4 constraints in the Size Inspector, but only one in the left column under Constraints.
> So no more deleting possible. But lucky for me: no more deletions needed (for now).
That’s because the left column shows each constraint once at the lowest level in the hierarchy it exists, the size inspector shows each constraint which affects the selected object, both constraints from the object and to the object. ie each constraint appears twice, once each for two different objects. The other three constraints are listed, just further up or further down the list, probably in the big long list of constraints next level up.
You can always select the constraint on the NIB picture, well some people can, on a macbook with a trackpad it’s harder than flappy bird.
>
> This was somewhat more intuitive in Xcode 5.1.1.
Deleting one constraint from the size inspector is probably less intuitive in 6, just about everything else pertaining to constraints is improved, easier to use and more intuitive. I really like the in-place, full-property editor, and the adaptive stuff is just awesome.
.. and if I remember back to the first autolayout in Xcode 4, which thought it could guess what constraints you wanted and completely broke them every time you moved a view by one pixel, often non-undoably, autolayout has come on further than just about anything else.
And we have live objects again, with properties you can define to hook up to. I never thought that was coming back.
>
> Kind regards,
>
> Gerriet.
>
>
>
>
> _______________________________________________
> 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