Instance Property

includesCount

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

Declaration

@property BOOL includesCount;

Discussion

If set to YES and includesUnit is set to NO, no unit is displayed. For example, a value of 723 KB is formatted as 723.

You can get the set this property to YES and the includesUnit to YES individually to get both parts, separately. Note that putting them together yourself via string concatenation may be incorrect for some locales.

The default value is YES.

See Also

Setting Formatting Styles

formattingContext

Specify the formatting context for the formatted string.

countStyle

Specify the number of bytes to be used for kilobytes.

allowsNonnumericFormatting

Determines whether to allow more natural display of some values.

includesActualByteCount

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

adaptive

Determines the display style of the size representation.

allowedUnits

Specify the units that can be used in the output.

includesUnit

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

zeroPadsFractionDigits

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