For us to go to the restaurant detail from the callout, we need to update our app so that our map can also open the restaurant detail. To do this, we must first create a storyboard reference. The project has a few storyboard references in the app already, but let's set up one together.
Map to restaurant detail
Creating a storyboard reference
To link to the restaurant detail from the map, we need to create a storyboard reference:
- Open the Map.storyboard, and in the object library (command + shift + L), drag a Storyboard Reference into the Map.storyboard scene:
- Next, select the Attributes inspector in the Utilities Panel, and update the storyboard under Storyboard Reference to say RestaurantDetail. Then, hit enter:...