Adding our first Table View

Now, let's add a UITableView into our UIViewController:

  1. In the Utilities Panel of Main.storyboard, in the filter field, type table, then drag the Table View onto the scene:

  1. Select the Pin icon and enter the following values:
    • Set all values under Add New Constraints to 0.
    • The Constrain to margins checkbox should be unchecked.
  1. Click on Add 4 Constraints.

If you build and run the project, and then launch the modal, you will see an empty Table View. We will complete this Table View later.

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

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