Instance Method

description(withLocale:)

Returns a string that represents the contents of the array, formatted as a property list.

Declaration

func description(withLocale locale: Any?) -> String

Parameters

locale

An NSLocale object or an NSDictionary object that specifies options used for formatting each of the array’s elements (where recognized). Specify nil if you don’t want the elements formatted.

Return Value

A string that represents the contents of the array, formatted as a property list.

Discussion

For a description of how locale is applied to each element in the receiving array, see description(withLocale:indent:).

See Also

Creating a Description

var description: String

A string that represents the contents of the array, formatted as a property list.

func description(withLocale: Any?, indent: Int) -> String

Returns a string that represents the contents of the array, formatted as a property list.