You have successfully connected all the outlets in RestaurantDetailViewController to the user interface elements in the table view for the Restaurant Detail screen. Since this is a static table view, you won't be using the methods that have been declared in the UITableViewDataSource protocol to populate the outlets. Instead, you will write custom methods to do so. Do the following steps:
- Click RestaurantDetailViewController.swift in the Project navigator.
- Add the following code after the existing import statement:
import MapKit
This is required since you will be using MapKit's properties and methods to generate an image of a map for the image view in the last cell.
- Add the following code after the last curly brace:
private extension RestaurantDetailViewController {
func setupLabels() {
guard let restaurant = selectedRestaurant...