Skip to content
Sample iOS application that shows how to use `AutoLayout` with a `UIScrollView` and zero code
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

UIScrollView and AutoLayout, no code!

Sample iOS application that shows how to use AutoLayout with a UIScrollView where the content needs to be dynamic—or use constraints in the content view—with zero code to make the scrolling work.

Traditionally you would either use the contentSize property on the scroll viewer, set in the code at the right time; or used fixed sized content views. The approach in this sample enables dynamic sizing of the container in code as needed, but also allows you to use constraints in your views.

This approach was inspired by this Technical Note.

The is the sample code for a blog post that will soon follow.

You can’t perform that action at this time.