[英]iOS Autolayout : Give top space equal to 1/5 of superview height
I want to set top space of my label to 1/5 of super view height. 我想将标签的顶部空间设置为超级视图高度的1/5。 I know we can do this at runtime by changing the constant to 1/5 of super view.
我知道我们可以在运行时通过将常量更改为超级视图的1/5来做到这一点。 But I want to do this using XIB only.
但是我只想使用XIB做到这一点。 Is there any way to achieve this?
有什么办法可以做到这一点?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.