【发布时间】:2023-11-21 22:56:02
【问题描述】:
我有一个 CLLocations 数组,每个数组都有每米元素的秒数。我想计算该数组的运行拆分(每公里分钟数)。如何从CLLocations 数组中获取每公里的分钟数?
这就是我获得以下位置的方式。
let query = HKWorkoutRouteQuery(route: route) { (_, locations, _, error) in
if let error = error {
print("There was an error fetching route data: ", error)
return
}
guard let locations = locations else { return }
}
healthStore.execute(query)
【问题讨论】:
标签: swift cllocationmanager cllocation