Skip to content

Instantly share code, notes, and snippets.

@jault3
Created October 23, 2014 05:58
Show Gist options
  • Save jault3/1399c8e75cf213663448 to your computer and use it in GitHub Desktop.
Save jault3/1399c8e75cf213663448 to your computer and use it in GitHub Desktop.
DataTypesToRead.m
- (NSSet *)dataTypesToRead {
HKQuantityType *heightType = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierHeight];
HKQuantityType *weightType = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierBodyMass];
HKQuantityType *heartRate = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierHeartRate];
HKQuantityType *walkingRunningDistance = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierDistanceWalkingRunning];
HKCharacteristicType *biologicalSex = [HKCharacteristicType characteristicTypeForIdentifier:HKCharacteristicTypeIdentifierBiologicalSex];
HKCharacteristicType *birthday = [HKCharacteristicType characteristicTypeForIdentifier:HKCharacteristicTypeIdentifierDateOfBirth];
return [NSSet setWithObjects:heightType, weightType, heartRate, walkingRunningDistance, biologicalSex, birthday, nil];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment