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:
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:
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...