Converting CLLocationCoordinate2D to a String that can be stored
问题 I'm trying to save the coordinates of a user while in one ViewController so that it can be used to create an Annotation that can displayed in another ViewController. In the view controller that stores the coordinates I'm using the code NSUserDefaults.standardUserDefaults().setObject( Location, forKey: "Location") In the map view controller that displays the annotation I'm trying to get the coordinates using the code let Location = NSUserDefaults.standardUserDefaults().stringForKey("Location")