Gold Challenge: Spacing Out the Labels

Space out the labels evenly from the top of the safe area to the bottom of the safe area (Figure 3.28). This should work on different screen sizes, so you will not be able to hardcode the values.

Figure 3.28  Flexible spacing between labels

Flexible spacing between labels

Hint: You will likely want to use hidden spacer views and equal height constraints to achieve this (Figure 3.29). You will see an easier way to accomplish this task in Chapter 11, but solving the problem using Auto Layout and the knowledge you gained in this chapter is invaluable practice.

Figure 3.29  Spacer views

Spacer views
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset