【发布时间】:2017-12-08 08:55:53
【问题描述】:
cat如何获取didUpdateLocation委托的坐标位置?
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation])
请帮帮我。谢谢
【问题讨论】:
-
CLLocation().coordinate? -
developer.apple.com/documentation/corelocation/cllocation/… 这是一个简单的属性。然后检查数组的第一个还是最后一个值?
-
我想要第一个位置的拳头值
-
@user9071596,
let coordinate: CLLocationCoordinate2D? = locations.first?.coordinate,可能。
标签: ios swift cllocationmanager cllocation cllocationcoordinate2d