Using auto layout with static background image

风格不统一 提交于 2019-12-12 06:19:44

问题


I am new to auto-layout and struggling with the layout of a view.

I have a UIImage pinned to the superview (0,0,0,0), it is set to aspect to fit.

I am struggling to add labels and buttons that remain in position relative to the image as the device screen size changes

What would be best way to set these labels/buttons to change with screen size and background image? I am trying make each objects height relative to its direct parent and then leading edge of superview.

Any input appreciated

来源:https://stackoverflow.com/questions/30088595/using-auto-layout-with-static-background-image

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