Adding a table view to the Locations screen
When you tap the button in the collection view section header of the Explore screen, another view representing the Locations screen will be presented modally, but it is currently blank. Let's add a table view to this view. Follow these steps:
- Build and run the
LetsEat
app to make sure everything still works as it should. Click theMain
storyboard file in the Project navigator. In the document outline, select the View Controller icon in the View Controller Scene presented modally by the button in the Explore View Controller Scene. Click the Library button:
- The library will appear. Type
table
into the filter field. A Table View object will appear in the results. - Drag the Table View object to the view in the view controller scene:
- You'll add constraints...