How to set dynamic width & height of a view in autolayout in iOS?

后端 未结 4 454
庸人自扰
庸人自扰 2021-01-04 11:12

I have a UIView in my super view.I have set it some constraints.Now I want the size of view should be different on different devices.If I set the fix width & height then

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-04 11:34

    Use Size Classes. It helps to have different settings for different devices. http://www.raywenderlich.com/83276/beginning-adaptive-layout-tutorial https://youtu.be/IwSTXY0awng?t=2m12s

提交回复
热议问题