[英]changing superview frame should not effect its subviews frame
there 那里
I have a viewController
,the hierarchy is something like this 我有一个
viewController
,层次结构是这样的
UIView->imageview->uiview->uiimageView->uitableview.
Now i want to change height of only first two object of my hierarchy ie UIView
and UIImageView
without effecting frames of other subviews
.Please help me. 现在我只想更改层次结构的前两个对象的高度,即
UIView
和UIImageView
而不影响其他subviews
框架。请帮助我。
According to your original question, this will work for you. 根据您最初的问题,这将为您工作。
self.view.autoResizeSubviews = NO;
self.myImageView.autoResizeSubviews = NO;
and then resize. 然后调整大小。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.