Adding Auto Layout to the Explore cell

  1. In the Outline view, select the container View that is holding the Image view and then the Pin icon. Enter the following values:
    • Top: 0
    • Right: 0
    • Left: 0
    • Constrain to margins: Unchecked
    • Height: 156 (should be checked)
  1. Click Add 4 Constraints.
  2. Select the Image view and then the Pin icon. Enter the following values:
    • Top: 0
    • Right: 0
    • Bottom: 0
    • Left: 0
    • Constrain to margins: Unchecked
  1. Click Add 4 Constraints.
  2. Select the Label in this exploreCell and then the Pin icon. Enter the following values:
    • Top: 9
    • Right: 8
    • Left: 8
    • Constrain to margins: Unchecked
    • Height: 21 (should be checked)
  1. Click Add 4 Constraints.

The Explore cell now has all the necessary constraints, and we can now set up the Restaurant cell.

..................Content has been hidden....................

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