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. 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 ...
Get iOS 10 Programming for Beginners 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.