ScrollView has ambiguous scrollable content height

IosUiscrollviewAutolayout

Ios Problem Overview


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 

Ios Solutions


Solution 1 - Ios

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMaduView Question on Stackoverflow
Solution 1 - IosSandy ChapmanView Answer on Stackoverflow