Instance Property


The number formatter used to format the numbers in length strings.


@property(copy) NSNumberFormatter *numberFormatter;


This property defaults to a number formatter using the NSNumberFormatterDecimalStyle. You can provide a different number formatter to customize the length string’s appearance.

See Also

Formatting Length Strings


A Boolean value that indicates whether the resulting string represents a person’s height.

- getObjectValue:forString:errorDescription:

This method is not supported for the NSLengthFormatter class.

- stringFromMeters:

Returns a length string for the provided value.

- stringFromValue:unit:

Returns a properly formatted length string for the given value and unit.

- unitStringFromMeters:usedUnit:

Returns the unit string for the provided value.

- unitStringFromValue:unit:

Returns the unit string based on the provided value and unit.


The unit style used by this formatter.