Re: Auto layout and Scroll View Problems?
Re: Auto layout and Scroll View Problems?
- Subject: Re: Auto layout and Scroll View Problems?
- From: Kyle Sluder <email@hidden>
- Date: Thu, 03 Sep 2015 10:02:56 -0500
On Thu, Sep 3, 2015, at 09:57 AM, Dave wrote:
> Ok, I think I've managed to add the “Equal Widths” constraints as per:
>
> http://natashatherobot.com/ios-autolayout-scrollview/
>
> I now go on to the following section:
>
> I’m a bit lost as to what:
>
> The constraints between the ScrollView and the ContentView are
> surprisingly straight forward – just bind the ContentView to the
> ScrollView (make sure the constant to the bottom layout guide is 0):
>
> means? I took it mean set up constraints between the "Bordered Scroll
> View” and "Flipped Clip View”, so I select "Bordered Scroll View” and
> "Flipped Clip View” and then select Add Constraint, but it won’t let me
> click the top, bottom, left, right constraints as shown in the link?
>
> Does anyone know of some clear instructions as to how to set this up in
> XCode/IB? I’m not sure if the link is different because of a difference
> in XCode versions (I’m using 6.4) or its iOS instead of Mac, or something
> else.
Yes, there's a pretty huge difference: UIScrollView doesn't have a
contentView.
Here's a pretty simple and straightforward blog post about doing this on
the Mac:
http://blog.bjhomer.com/2014/08/nsscrollview-and-autolayout.html
--Kyle Sluder
_______________________________________________
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