自动布局关闭时,Ios设计无法滚动

时间:2015-03-11 13:13:00

标签: ios uitableview swift autolayout uicontainerview

禁用自动布局时,我无法进行可滚动视图。

有什么建议吗?

Tableview是Ad Related Container View,我无法滚动它。

但是每个containerview都不可滚动。 (3个containerviews)

enter image description here

编辑: enter image description here

enter image description here

集装箱尺寸检查员:

enter image description here

容器tableview:

enter image description here

1 个答案:

答案 0 :(得分:0)

我相信表格视图使用estimatedHeightForRowAtIndexPath来确定表格的大小。您可能需要确保它为您的单元格返回半精确高度,否则它可能不会显示滚动条。如果您不知道尺寸,可以返回UITableViewAutomaticDimension。如果自动布局关闭,则不确定其工作原理。如果它什么都不做,请尝试使用您认为合理的值。

如果heightForRowAtIndexPath太小,请检查您从{{1}}返回的内容。

同时检查是否已启用滚动。

相关问题