Setting up outlets for the RestaurantDetailViewController class
Your app has data on all its screens except for the Restaurant Detail screen. This screen is accessed either by tapping a restaurant on the Restaurant List screen or by tapping the restaurant annotation view's callout bubble button on the Map screen. If you build and run your app, tapping a restaurant on the Restaurant List screen shows the placeholder Restaurant Detail screen:
Figure 18.1 – iOS simulator showing the placeholder Restaurant Detail screen
Tapping the button in the restaurant annotation view's callout bubble on the Map screen shows the actual Restaurant Detail screen, but it does not contain any restaurant data:
Figure 18.2 – iOS simulator showing the Restaurant Detail screen
To fix this, let's set up the outlets for the RestaurantDetailViewController
class. Click RestaurantDetailViewController.swift
in the Project navigator. Add...