滚动视图行为不正常?

Scroll View not behaving properly?

我有一个正在使用滚动的屏幕view.I我将滚动视图作为父视图。

滚动视图限制

center x to super view 
leading space 
trailing space 
top space to top layout guide ,constant:-64.0

在滚动视图中我有一个主视图。

手动查看约束

center x to super view 
leading space 
trailing space 
top space 
bottom space,constant:-30
height:30 

如您所见,图像下方有一个标签,但该标签不可见,当我添加滚动条时它是可见的 view.Please 告诉我如何将整个视图适合屏幕。即使在 iPad 这是不正确的。

我认为问题不在于滚动视图。它与您的 VC 一起使用,如果您可以在尺寸检查器中检查尺寸,它将位于导航栏下方的 0 处。

您应该 select 您的视图控制器打开属性检查器并取消选择 在顶部栏 下。

这会将嵌入在 VC 中的 mainView 设置为 64

并且您的 scoll 视图 应该 在 0 Y。因为您已经将主视图设置为 64。

希望这对您有所帮助:)