Re: Auto Layout Problems
Re: Auto Layout Problems
- Subject: Re: Auto Layout Problems
- From: Dave <email@hidden>
- Date: Sat, 05 Sep 2015 14:01:09 +0100
Hi,
I’ve been experimenting and given that I have this in a NIB file:
Window Initially - Width=846, Height=594
BaseView (Matches Window)
NSScrollView Initially - X=20,Y=20, Width=806, Height=554
FlippedClipView
InsideView
(I’ve changed the names to make things easier (I hope!)).
In XCode 6.4/IB I select NSScrollView and then Click the “ Pin” button and add top, bottom, left, right constraints. I then assume I need to do the same to FlippedClipView, but but having selected it and clicking “Pin” it won’t allow me to set any constraints? Also if I try and Control+Drag FlippedClipView to NSScrollView (or Command+Selecting both Views) nothing happens.
However if I try this with InsideView, it does allow me to set constraints, so should the constraints be between InsideView/NSScrollView or FlippedClipView/NSScrollView?
Ultimately I want to have a StackView added to the Scroll View and then add Items to the StackView and be able to scroll the items. With this in mind, in the NIB, do I add the StackView to InsideView or do I replace InsideView with the StackVIew? Also do I need to set constraints on the StackVIew to the NSScrollView and/or the InsideView and/or FlippedClipView?
Cheers
Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden