Class

NSMeasurementFormatter

A formatter that provides localized representations of units and measurements.

Overview

You use the stringFromMeasurement: method to create a localized representation of an NSMeasurement object, and you use the stringFromUnit: method to create a localized representation of an NSUnit object. The formatter takes into account the specified locale, unitStyle, and unitOptions when producing string representations of units and measurements.

Topics

Specifying the Format

unitOptions

The options for how the unit is formatted.

unitStyle

The unit style.

locale

The locale of the formatter.

numberFormatter

The number formatter used to format the quantity of a measurement.

Converting Measurements

stringFromMeasurement:

Creates and returns a localized string representation of the provided measurement.

stringFromUnit:

Creates and returns a localized string representation of the provided unit of measure.

Constants

NSMeasurementFormatterUnitOptions

Measurement formatter options.

Relationships

Inherits From

Conforms To