import UIKit
import MapKit

class ViewController: UIViewController, MKMapViewDelegate {
                            
    @IBOutlet var theMap: MKMapView
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}


import UIKit
import MapKit

class ViewController: UIViewController, MKMapViewDelegate {
                            
    @IBOutlet var theMap: MKMapView
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        // User tracking mode in iOS
        self.theMap.setUserTrackingMode(MKUserTrackingMode.Follow, animated: true);
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}


Set the UserTrackingMode for the mapView
Set the UserTrackingMode for the mapView
