Re: Auto Layout Problems
Re: Auto Layout Problems
- Subject: Re: Auto Layout Problems
- From: "Gary L. Wade" <email@hidden>
- Date: Fri, 04 Sep 2015 13:23:53 -0700
As I mentioned, start with your stack view in your window, embed it in a scroll view using the menu command to do this, and add your constraints on the scroll view to position it within your window. It's easier and less error-prone if you do it this way. If you'd rather do it in code, do a search for a tutorial using NSScrollView Autolayout.
--
Gary L. Wade (Sent from my iPhone)
http://www.garywade.com/
> On Sep 4, 2015, at 10:48 AM, Dave <email@hidden> wrote:
>
> Hi,
>
>> It seems your thread keeps changing subjects so it's been difficult to follow your troubles back to something at the start, or maybe something's gotten lost.
>
>
> What I’d dearly love to know right now is how to setup the Constraints for a Scroll View and Clip View etc. in XCode/IB for Mac.
>
> If I have a window in a NIB like this:
>
> Window Initially - Width=846, Height=594
> View
> ScrollView Initially - X=20,Y=20, Width=806, Height=554
> Flipped Clip View
> View
>
> How do I set the constraints for the above Views in XCode/IB?
>
> I want the Scroll View to Stretch/Contract if the window is resized.
>
> After this, I’d like to add a StackView to the Scroll View (in XCode/IB) and have it Match the Size/Position of the Scroll View.
>
> I’ve found (sketchy) articles describing how to it in XCode/IB for iOS and I’’ve found (again sketchy) an article how to do it in Code for Mac.
>
> Ideally I’d like to be able to do this and target 10.9 and using XCode 6.4.
>
> All the Best
> 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