UIStoryboard constraints on UIView

*爱你&永不变心* 提交于 2019-12-31 05:32:07

问题


I have a view on top of my viewcontroller, its height is 64.

I need this view stays same size in all screen size 3.5" , 4" , 4,7" and 5,5".

The result I am taking is as in screenshots.

What should I do?

After fixing height to 64 it looks like this ;


回答1:


Add Fixed Height to your Headerview like this , check in below image .




回答2:


Fix Height of your view

Leading : 0

Top : 0

trailing : 0




回答3:


Pin the height for wAny hAny size classes.



来源:https://stackoverflow.com/questions/36789023/uistoryboard-constraints-on-uiview

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