Refactoring restaurant detail
In order for us to go to the restaurant detail from the callout, we need to update our app so that we can share the restaurant detail with the Map.
We currently have our restaurant detail inside of Explore.storyboard
. To better organize our Storyboards, we need to create a Storyboard reference and put our restaurant detail into its own Storyboard:
- In
Explore.storyboard
, click on the Table View Controller Scene that contains the restaurant detail. - With the scene selected, navigate to Editor | Refactor to Storyboard.
- In the screen that appears, name this
RestaurantDetail.storyboard
, and then hit Save.
You now have a new RestaurantDetail.storyboard
file in your Storyboard
folder in the Navigator panel.
Let's build and run the project again by hitting the play button (or use CMD + R). You should still be able to go to restaurant details from the restaurant listings. Now, we need to link to the restaurant detail from the Map.
Creating a Storyboard reference
In order...