1

I have a UIView acting as a progress bar that sites at the bottom of the screen. I can't seem to figure out how to use AutoLayout to have it stick to the bottom of the screen and remain 8px high.

Is it possible to do this in Interface Builder?

4

1 回答 1

3

你想要:

  • 将视图的高度固定为 8 点
  • 将视图与其父视图之间的空间固定在底部

您可以在 Interface Builder 中完成这两件事 - 查看设计窗格右下角的上下文菜单。如果在您固定您想要的东西后指标不完全正确,您可以选择 IB 将创建的约束并直接调整它们的常量。

于 2013-06-13T00:23:51.553 回答