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