2016-04-27 6 views

Antwort

0

Wenn Sie bereits NSLocationAlwaysUsageDescription Schlüssel in Ihrem Info.plist-Datei enthalten sind, können Sie so etwas wie dies versuchen könnte:

let yourLocation = CLLocationCoordinate2D(latitude: location.coordinate.latitude, longitude: location.coordinate.longitude)   
let region = MKCoordinateRegion(center: yourLocation, span: MKCoordinateSpan(latitudeDelta: 0.01, longitudeDelta: 0.01)) 

self.map.setRegion(region, animated: true) 
+0

vielen Dank –