title: How do I save a users location and display it on a map using a pin (or some other marker)?
body: <p>What I want to do is have a button that the user can click that would save their current location. Then, on a map, a pin would appear where the save location is. How would I go about doing this? I've searched for some sample code but I can't find any that work or are in Swift.</p>
  
  <p>I have it so the user can also see where they are at at all times. Bellow is what I currently have for code.</p>
  
  <pre><code>import UIKit
  import CoreLocation
  import MapKit
  
  
  class ViewController: UIViewController, CLLocationManagerDelegate {
  
  var locationManager = CLLocationManager()
  
  
  @IBOutlet var Map: MKMapView!
  
  
  
  override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view, typically from a nib.
  
      locationManager.delegate = self
      locationManager.requestWhenInUseAuthorization()
      locationManager.startUpdatingLocation()
  
  
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  
  
  func locationManager(manager: CLLocationManager!, didUpdateToLocation newLocation: CLLocation!, fromLocation oldLocation: CLLocation!) {
  
      println("Updating Location \(newLocation.coordinate.latitude) , \(newLocation.coordinate.longitude) ")
  
  
  
  
  
      let span = MKCoordinateSpanMake(0.0009, 0.0009)
      let region = MKCoordinateRegion(center: newLocation.coordinate, span: span)
      Map.setRegion(region, animated: false)
  }
  }
  </code></pre>
  
  <p>What would I add to this code to accomplish my goal that I described in my first paragraph?</p>