IOS Autolayout to set width and height to fit screen size
1 answer
if uiview is in uiviewcontroller.
-
you have to add center horizontally and vertically to container constraint for this uiview.
-
you need to add equal height and equal width for this uiview with your superview.
- select equal width constraint and width constraint and add a multiplier to this constraint as per your need.
+3
source to share