【发布时间】:2017-03-19 17:33:01
【问题描述】:
【问题讨论】:
标签: ios objective-c uiview storyboard constraints
【问题讨论】:
标签: ios objective-c uiview storyboard constraints
你可以做到。只需将错误视图放在弹出窗口的中间,当发生错误时更改此视图的高度(例如错误,heightConstraint.constant = 50)。
然后调用
[self.view setNeedsUpdateConstraints];
[self.view updateConstraintsIfNeeded];
但重要的是要注意,您应该正确配置所有约束以正确拉伸弹出视图。
【讨论】: