The Save button in the Review Form screen can now save a review with a restaurant identifier, but where does ReviewFormViewController get that identifier from? You must pass the identifier value from RestaurantDetailViewController to ReviewFormViewController so that it can save reviews for that restaurant. Do the following steps:
- Open RestaurantDetail.storyboard and select the segue used to go to the ReviewForm scene, as follows:
- In the Attributes inspector, set Identifier under Storyboard Segue to showReview, as follows (hit Return when done):
- Click RestaurantDetailViewController.swift ...