Skip to content

Instantly share code, notes, and snippets.

@jault3
Created October 23, 2014 05:58
Embed
What would you like to do?
DataTypesToWrite.m
- (NSSet *)dataTypesToWrite {
HKQuantityType *heightType = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierHeight];
HKQuantityType *weightType = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierBodyMass];
HKQuantityType *heartRate = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierHeartRate];
HKQuantityType *walkingRunningDistance = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierDistanceWalkingRunning];
return [NSSet setWithObjects:heightType, weightType, heartRate, walkingRunningDistance, nil];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment