Type Method


Returns the base unit.


+ (instancetype)baseUnit;

Return Value

An NSDimension subclass object from which all other units provided by the subclass are defined.


The default implementation returns nil to indicate that the NSDimension class should not be used directly.

When implementing a subclass, you should return a unit converter that returns the inputted value for both the baseUnitValueFromValue: and valueFromBaseUnitValue: methods. You can create a unit converter for a base unit using the NSUnitConverterLinear initWithCoefficient: initializer, passing 1 as the coefficient.