View at the bottom in a UIScrollView, with AutoLayout : <p>I'm setting up content in a scroll view with autolayout. The objects in the scrollview are pinned top-to-bottom to the previous one, so that they are under one another. I have a footer view that is added at the end, below these objects. </p>

<p>Here's the catch: when there's few content, the contentView will be smaller than the screen height, so the footer view will appear somewhere in the middle of the screen (which is the normal behavior). But I'd like to prevent that, and make the view stay somewhere at the bottom. </p>

<p>In other words, I would like to setup a double constraint like:</p>

<pre><code>Put this view below all the objects in the scrollview 
AND
keep this view at a distance of max [some number] of the bottom of the screen
</code></pre>

<p>In a way that both constraints are always satisfied:</p>

<ul>
<li>If the height of the content is bigger than the screen, then the view appears at the bottom, after scrolling down</li>
<li>If the height is smaller, then the view is "pinned" to the bottom of the screen, leaving a space relatively big between the bottom of the content and the top of this view</li>
</ul>

<p>How can I achieve that with AutoLayout?</p>
