ScrollView has ambiguous scrollable content height

Madu picture Madu · Jun 25, 2014 · Viewed 63k times · Source

I am making a very basic UIScrollView test. Here is my setup enter image description here It shows me the following AutoLayout error:

ScrollView has ambiguous scrollable content height 

Answer

Sandy Chapman picture Sandy Chapman · Jun 25, 2014

You need to ensure you've got a chain of vertical spacing constraints from the top of the scroll view through all your elements to the bottom of the scroll view.

Once you do that, your warning/error should go away.