Implementing an unwind method for the Cancel button
Let's take a look at the Review Form screen. The segue between the Add Review button and the Review Form screen has already been made for you. Build and run your project, go to the Restaurant Detail screen, and tap the Add Review button:
The Review Form screen is displayed (note that the top table view cell has a blank space where a ratings view should be, which you will add later):
Once the Review Form screen appears on the screen, you can't dismiss it, as the button actions for the Save and Cancel buttons have not been configured. Just as you did with the Locations screen, you need to implement an unwind method to dismiss the Review Form screen. Follow these steps:
- Click
RestaurantDetailViewController.swift
in the Project navigator...