滚动型有暧昧的滚动内容高度 [英] ScrollView has ambiguous scrollable content height

查看:203
本文介绍了滚动型有暧昧的滚动内容高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出一个非常基本的UIScrollView测试。这里是我的设置这表明我下面的自动版式错误:

 滚动型有暧昧的滚动内容高度


解决方案

您需要确保你得到的垂直间距限制链从通过所有的元素滚动视图底部的滚动视图的顶部。

一旦你这样做,你的警告/错误应该走了。

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 

解决方案

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.

这篇关于滚动型有暧昧的滚动内容高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆