Working with Auto Layout can be very frustrating. If it does not work correctly, I recommend that you clear all the constraints and start over.
Let's begin by adding Auto Layout to our Label subtitle, which is where we should show the currently selected location:
- Select the View, that we are using as a container and then the Pin icon. Enter the following value:
- Click Add 4 Constraints.
- Select the Label subtitle and then the Pin icon. Enter the following values:
- Click Add 4 Constraints. Your constraints ...