We have a couple of issues that we need to correct under Select a location. You will notice that when you click on Select a location, you can check multiple locations. We only want the user to be able to select one location. In addition, the checkmark next to your selected location disappears if you click on Done in Location View and then click to choose a location again. We need to set the last selected location so that it is saved when you go back to your location list. We can address these issues at the same time:
While in
Explore.storyboard
, select the segue that is connected to theLocationViewController
.Select the Attributes Inspector in the Utilities panel and set "Identifier" under Storyboard Segue to locationList. Then, hit Enter:
Now, select the segue that is connected to the
RestaurantListViewController
and set Identifier to restaurantList. Then, hit Enter:Next, we need to set up these identifiers. We are going to update the segue
enum
, which we...