Class

NSLengthFormatter

A formatter that provides localized descriptions of linear distances, such as length and height measurements.

Declaration

@interface NSLengthFormatter : NSFormatter

Overview

Topics

Formatting Length Strings

forPersonHeightUse

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.

numberFormatter

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

- 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.

unitStyle

The unit style used by this formatter.

Constants

NSLengthFormatterUnit

The units supported by the NSLengthFormatter class.

Relationships

Inherits From

See Also

Deprecated

NSMassFormatter

A formatter that provides localized descriptions of mass and weight values.

NSEnergyFormatter

A formatter that provides localized descriptions of energy values.