问题
I am making a very basic UIScrollView test. Here is my setup
It shows me the following AutoLayout error:ScrollView has ambiguous scrollable content height
回答1:
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.
来源:https://stackoverflow.com/questions/24408256/scrollview-has-ambiguous-scrollable-content-height