UIView resizing but not the SubViews

这一生的挚爱 提交于 2019-12-02 02:16:29

Turn off "Autoresize Subviews" on your UIView v1 attributes in the XIB file.

By default this is checked.

This works for your app above. Alternatively, if you wanted some children to auto-resize and some not, then on each child you can disable the auto-size height/width (the red arrows within the "Auto-sizing" box.

Your UIImageView will then stop resizing.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!