0

我试图将 UIView 与容器视图(UIScroolView)的底部和工具栏上方对齐。它在设计到 iphone 3.5 显示器时完美运行,但是当我的布局更改为 4.0 显示器时,我的视图不会对齐到底部,而是保持在与 UIToolbar 有间隙的相同位置。

iPhone 3.5 显示屏

iPhone 4.0 显示屏

我检查了一下,我意识到我有一个带有常量的垂直空间约束,我认为这就是为什么我的视图总是停留在同一个地方,问题是我无法摆脱这个约束,我想知道是否有人可以帮我解决这个问题。

约束

谢谢!

4

1 回答 1

0

I think you need to add a height constraint to the toolbar. If you have that and a zero length vertical spacing constraint between the toolbar and scroll view, you should be able to delete that constraint to the top of the super view.

于 2013-04-04T22:11:41.673 回答