Contents

string(from:style:)

Returns a postal address as a string and formatted for the specified style.

Declaration

class func string(from postalAddress: CNPostalAddress, style: CNPostalAddressFormatterStyle) -> String

Parameters

  • postalAddress:

    The postal address to format.

  • style:

    The postal formatting style to use. For a list of possible values, see Cnpostaladdressformatterstyle.

Return Value

The formatted postal address.

See Also

Generating a formatted string