title: Printing current coordinates to a label (Swift, Xcode8)
body: <p>I'm a beginner, I'm studying Swift just for fun. Right now I'm studying the use of maps in apps and I'd like to print the current coordinates (latitude, longitude) to a label. </p>
  
  <p>Now, I've managed to show the map and the current position on the map and get the coordinates of it but I need help how I could print these coordinates to the label.</p>
  
  <p>This is what I've done so far:</p>
  
  <pre><code>import UIKit
  import MapKit
  import CoreLocation
  
  class ViewController: UIViewController, CLLocationManagerDelegate {
  
      @IBOutlet weak var posizione: UILabel!
      //Map
      @IBOutlet weak var map: MKMapView!
  
  
  
      @IBAction func rileva(_ sender: Any)
      {
  
      }
  
  
      let manager = CLLocationManager()
  
      func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation])
      {
          let location = locations[0]
  
          let span:MKCoordinateSpan = MKCoordinateSpanMake(0.01, 0.01)
          let myLocation: CLLocationCoordinate2D = CLLocationCoordinate2DMake(location.coordinate.latitude, location.coordinate.longitude)
          let region:MKCoordinateRegion = MKCoordinateRegionMake(myLocation, span)
          map.setRegion(region, animated: true)
  
          print(location.coordinate)
          print(location.altitude)
  
          self.map.showsUserLocation = true
  
      }
  </code></pre>