1

I am interested in obtaining the summary numbers of steps per day from Health Kit. Is there a way to do this without having to query for individual HKQuantitySamples and then summing up the data by day myself?

helloB
  • 3,472
  • 10
  • 40
  • 87

1 Answers1

1

Use HKStatisticsCollectionQuery (reference documentation here) to compute the total number of steps taken per day.

Allan
  • 7,039
  • 1
  • 16
  • 26