Type Method

unitFromLengthFormatterUnit:

Converts a length formatter enumeration value into a corresponding HealthKit object.

Declaration

+ (instancetype)unitFromLengthFormatterUnit:(NSLengthFormatterUnit)lengthFormatterUnit;

Parameters

lengthFormatterUnit

A valid length formatter unit value. For a list of possible length formatter unit values, see NSLengthFormatterUnit.

Return Value

A HealthKit unit object, or nil if the unit parameter is not a valid length formatter unit value.

See Also

Working with Formatter Units

+ energyFormatterUnitFromUnit:

Converts a HealthKit unit object into a corresponding energy formatter enumeration value.

+ unitFromEnergyFormatterUnit:

Converts an energy formatter enumeration value into a corresponding HealthKit unit object.

+ lengthFormatterUnitFromUnit:

Converts a HealthKit unit object into a corresponding length formatter enumeration value.

+ massFormatterUnitFromUnit:

Converts a HealthKit unit object into a corresponding mass formatter enumeration value.

+ unitFromMassFormatterUnit:

Converts a mass formatter enumeration value into a corresponding HealthKit unit object.