Instance Property


Determines whether to allow more natural display of some values.


@property BOOL allowsNonnumericFormatting;


Displays a more natural display of some values, such as zero, where it may be displayed as Zero KB, ignoring all other flags or options (with the exception of NSByteCountFormatterUseBytes, which would generate Zero bytes).The result is appropriate for standalone output.

Special handling of certain values such as zero is especially important in some languages, so it's highly recommended that this property be left in its default state.

Default value is YES.

See Also

Setting Formatting Styles


Specify the formatting context for the formatted string.


Specify the number of bytes to be used for kilobytes.


Determines whether to include the number of bytes after the formatted string.


Determines the display style of the size representation.


Specify the units that can be used in the output.


Determines whether to include the count in the resulting formatted string.


Determines whether to include the units in the resulting formatted string.


Determines whether to zero pad fraction digits so a consistent number of characters is displayed in a representation.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software