Now, let's add a UITableView into our UIViewController:
- In the Utilities Panel of Main.storyboard, in the filter field, type table, then drag the Table View onto the scene:
- 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.
- 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.