AutoLayout in iOS
Auto Layout dynamically calculates the size and position of all the views in your view hierarchy, based on constraints placed on those views.
Space Views Evenly
It is common to want two views to be side by side, centered in their superview. The common answer given on Stack Overflow is to embed these two views in a UIView and center the UIView. This is not necessary or recommended. From the UILayoutGuide.
There are a number of costs associated with adding dummy views to your view hierarchy. First, there is the cost of creating and maintaining the…