Getting the last selected location

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. Also, 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:

  1. Open Explore.storyboard.
  2. Select the segue that is connected to the LocationViewController.
  3. Then, select the Attributes inspector in the Utilities Panel and set Identifier under Storyboard Segue to ...

Get iOS 12 Programming for Beginners - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.