简体   繁体   中英

changing superview frame should not effect its subviews frame

there

I have a viewController ,the hierarchy is something like this

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.

According to your original question, this will work for you.

self.view.autoResizeSubviews = NO;
self.myImageView.autoResizeSubviews = NO;

and then resize.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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