Auto Layout

Use Auto Layout to create a user interface that dynamically responds to changes in the available screen space. Auto Layout dynamically calculates the size and position of all the views in your view hierarchy, based on a set of constraints placed on those views. The available space can change for many reasons including the user rotating a device, entering or leaving Split view, or a change in the content of your app.