hksamplequery Questions
2
Solved
I'm building an app for personal use, and I am currently stuck on how to accurately get yesterdays steps from the healthkit. And then from there, placing it into a variable (should be easy, I know)...
Parabasis asked 23/9, 2016 at 5:48
2
Solved
Apple health app gives the data by Date wise as shown in below image.
By using HealthKit i am fetching the steps data from apple health
as
let p1 = HKQuery.predicateForSamples(withStart: fromD...
Hypochondriasis asked 31/5, 2018 at 9:6
6
Solved
What's the best way to get a total step count for every day recorded in HealthKit.
With HKSampleQuery's method initWithSampleType (see below) I can set a start and end date for the query using NSPr...
Coacervate asked 11/4, 2015 at 20:4
3
Solved
I have a scenario where I need to retrieve multiple sets of data from HealthKit -- body temperature, weight, and blood pressure. I need all 3 before I can continue processing because they're going ...
Stoneware asked 24/4, 2015 at 18:32
1
I'm trying to use HealthKit's step counter and so far this is what I have. It doesn't fail but I don't see any activity. What am I missing?
import UIKit
import HealthKit
class ViewController: UIV...
Menendez asked 2/3, 2015 at 2:59
2
Solved
I'm trying to display the daily amount of steps the user takes.
But I don't really know how to manage this.
I already got this code:
let endDate = NSDate()
let startDate = NSCalendar.currentCalenda...
Afterdamp asked 2/2, 2015 at 20:16
1
© 2022 - 2024 — McMap. All rights reserved.