How to get Heartrate data from Apple's Healthkit?
问题 I am trying to read Heartrate data from Healthkit. I am not able to read that data. I have gone throught this link. Please help me guys..Thank you. 回答1: I managed to read the heart rates from HelathKit using HKSampleQuery. I start reading it from the beginning of the day till 'now'. I also used this link Here is my function and I call it by pressing a button: - (void)readHeartRateWithCompletion:(void (^)(NSArray *results, NSError *error))completion { //get the heart rates NSDate *now =