The units supported by the NSLength
class.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
typedef enum NSLengthFormatterUnit : NSInteger {
...
} NSLengthFormatterUnit;
The units supported by the NSLength
class.
SDKs
Framework
typedef enum NSLengthFormatterUnit : NSInteger {
...
} NSLengthFormatterUnit;
NSLength Formatter Unit Millimeter
The millimeter unit.
NSLength Formatter Unit Centimeter
The centimeter unit.
NSLength Formatter Unit Meter
The meter unit.
NSLength Formatter Unit Kilometer
The kilometer unit.
NSLength Formatter Unit Inch
The inch unit.
NSLength Formatter Unit Foot
The foot unit.
NSLength Formatter Unit Yard
The yard unit.
NSLength Formatter Unit Mile
The mile unit.