Contents

string(fromByteCount:countStyle:)

Converts a byte count into the specified string format without creating an NSNumber object.

Declaration

class func string(fromByteCount byteCount: Int64, countStyle: ByteCountFormatter.CountStyle) -> String

Parameters

  • byteCount:

    The byte count.

  • countStyle:

    The formatter style. See Countstyle Swift.enum for possible values.

Return Value

A string containing the formatted byteCount value.

See Also

Related Documentation

  • Data Formatting Guide

Creating Strings from Byte Count