Adding the data source and delegate

As discussed in the previous chapter, we need to add a data source and delegate to our Table View. Table View uses dynamic cells, which we are required to add:

  1. Select Table View in the Outline view, and then Connections inspector in the Utilities Panel.
  2. Click on and drag from dataSource to the Location View Controller in the Outline view:
  1. Repeat with the delegate property:
  1. Now, select the Table View and then in the Utilities Panel, select the Attributes inspector, if not already selected, and make sure ...

Get iOS 12 Programming for Beginners - Third 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.