We looked previously at the basic HKSampleQuery and the HKAnchoredObjectQuery. Both provided ways to query samples in HealthKit and work with data that the user had provided permission for.
The next query we will look at is the HKStatisticsQuery. This query is particularly interesting to those who want to calculate sum, minimum, maximum, or average values.
Lets begin by downloading the project from where we left off last time.
[Read more…]