ScrollView has ambiguous scrollable content height [duplicate]

折月煮酒 提交于 2019-12-20 17:34:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!