【问题标题】:HealthKit how to get distance and paceHealthKit 如何获取距离和配速
【发布时间】:2017-02-19 19:11:16
【问题描述】:

我正在编写一个手表应用程序,我正在尝试找到获得当前HKWorkoutSession 的距离和配速的最佳方法。

我可以从HealthKit 获取步骤并将其用作distancepace 的来源,但我认为这不是最好的解决方案。

谢谢!

【问题讨论】:

    标签: apple-watch watch healthkit


    【解决方案1】:

    我认为HKQuantityType.quantityType(forIdentifier: .distanceWalkingRunning) 正是我想要的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多