Setting up restaurant list cell outlets

Now, we need to set up our restaurantListCell outlets:

  1. Open the RestaurantCell.swift file in the Navigator panel (or click on CMD + SHIFT + O, type RestaurantCell, and hit Enter).
  2. Inside the class declaration, add the following:
    @IBOutlet var lblTitle:UILabel!
    @IBOutlet var lblCity:UILabel!
    @IBOutlet var lblCuisine:UILabel!
  3. Open Explore.storyboard and select our restaurantListCell again in the Outline view.
  4. Then, in the Utilities panel, select the Connections Inspector, where you will see a list of Outlets.
  5. Click on and drag from the empty circle lblTitle under Outlets to the topmost label in our restaurantListCell, from the empty circle lblCity to the middle label in our cell and from the empty circle lblCuisine ...

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