Re: Auto Layout in IB Breaks Control-Drag?
Re: Auto Layout in IB Breaks Control-Drag?
- Subject: Re: Auto Layout in IB Breaks Control-Drag?
- From: Kevin Cathey <email@hidden>
- Date: Sat, 03 Mar 2012 12:55:59 -0800
> I don't know if hooking an outlet up to a constraint makes any sense,
There are cases where it definitely makes sense. For example, imagine you have a scroll view or other view that has an explicit height you've added, and you want to change the height of the view as some parameters change. You would make the explicit height constraint in IB, make an outlet to it, then in code change the constant.
Or, imagine you have a custom view subclass that has an intrinsic content size defined at runtime. IB will create automatic constraints because we don't know about your custom intrinsic content size. You would create outlets to the constraints you wanted to get rid of at runtime.
Those are just a few of the many examples that I've seen…
Kevin
On 3 Mar 2012, at 11:22, Seth Willits <email@hidden> wrote:
> I played with this some more. If the control is already selected, it shows the constraint guide lines, and I believe I was control-clicking on that guide line which was then trying to set the action/outlet *of* that constraint.
>
> I still haven't read up on constraint layout, and how its done in IB so I don't know if hooking an outlet up to a constraint makes any sense, but that's the issue I was coming across and just wasn't realizing it.
>
> So, all is well.
>
>
> --
> Seth Willits
>
>
>
> On Feb 27, 2012, at 8:41 AM, Kevin Cathey wrote:
>
>> Seth,
>>
>> Auto layout should definitely have no effect on the control dragging for connections. Please file a bug and attach a screen movie with the problem reproducing.
>>
>> Thanks,
>> Kevin
>>
>> On 26 Feb 2012, at 19:42, Seth Willits <email@hidden> wrote:
>>
>>>
>>> I tried to find some mention of this in the documentation but couldn't. If auto layout is turned on in a xib, control-click-drag to set an action no longer seems to work. Is this intentional? I can't see what else it's supposed to do, it just doesn't work.
>>>
>>>
>>> --
>>> Seth Willits
>
_______________________________________________
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