Type Method

unitFromMassFormatterUnit:

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

Declaration

+ (instancetype)unitFromMassFormatterUnit:(NSMassFormatterUnit)massFormatterUnit;

Parameters

massFormatterUnit

A valid mass formatter unit value. For a list of possible mass formatter unit values, see NSMassFormatterUnit.

Return Value

A HealthKit unit object, or nil if the unit parameter is not a valid energy 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.

+ unitFromLengthFormatterUnit:

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

+ massFormatterUnitFromUnit:

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