UIScrollView会在底部剪切空白区域

时间:2016-08-13 23:10:27

标签: iphone xcode uiscrollview storyboard viewcontroller

enter image description here

我似乎无法在该红线下方滚动,看起来UIScrollView会自动将其删除。我怎么能不把它剪掉呢?

1 个答案:

答案 0 :(得分:2)

contentView.translatesAutoresizingMaskIntoConstraints = true

这条线似乎解决了这个问题,至少在我的情况下如此。内容视图是滚动视图的子项。

相关问题