Adding the data source and delegate methods

A view controller for a table view needs to adopt the table view data source and delegate protocols, as well as implement the required methods to allow data display and user interaction. In this section, you'll connect LocationViewController to the data source and delegate outlets for the table view, configure the attributes for the table view cells, and implement the required data source methods. You will implement delegate methods in Chapter 17, Getting Started with JSON Files. Do the following steps:

  1. Click the Navigator and Inspector buttons to show the Navigator and Inspector areas:
  1. In Main.storyboard ...

Get iOS 13 Programming for Beginners - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.