2016-04-27 64 views

回答

0

如果您已經在您的Info.plist文件NSLocationAlwaysUsageDescription鍵,你可以嘗試這樣的事:

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

非常感謝你 –

相關問題