简体   繁体   English

自动调整UIView中的子视图

[英]Auto Adjust subviews in a UIView

I have no.of subviews added in the UIView, at runtime I am changing the frame(increasing) of the UIView with the basic UIAnimations. 我在UIView中没有添加子视图,在运行时我正在使用基本的UIAnimations更改UIView的框架(增加)。 But the subviews which I have added are not proportionately increasing/decreasing with the super view. 但我已经加入了子视图并不/与超级视图比例下降增加。 In the interface builder I have adjusted the Auto Sizing mask for all the subviews to get adjusted according to the parent/super view.But it didnt worked.Can anyone help me in this? 在界面构建器中,我已经调整了所有子视图的Auto Sizing遮罩以根据父视图/超级视图进行调整。但是它没有用,有人可以帮我吗?

Thank you. 谢谢。

确保调整大小的视图的autoresizesSubviews属性设置为YES

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM