Skip to content

Instantly share code, notes, and snippets.

@max6363
Created May 8, 2018 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save max6363/7ed477783d8f2c289f44803f7da66838 to your computer and use it in GitHub Desktop.
Save max6363/7ed477783d8f2c289f44803f7da66838 to your computer and use it in GitHub Desktop.
/**
Read Cycling Distance
*/
- (IBAction)onReadCylingDistanceAction:(id)sender
{
[[HealthKitManager sharedInstance] readCyclingDistanceWithFinishBlock:^(NSError *error, NSNumber *value) {
if (error) {
// handle error
NSLog(@"error : %@",error);
} else {
// value
NSLog(@"value: %@",value);
}
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment