Class

CNMutablePostalAddress

A mutable representation of the postal address for a contact.

Declaration

class CNMutablePostalAddress : CNPostalAddress

Overview

CNMutablePostalAddress is not a thread-safe class. To remove properties when saving a mutable postal address, set string properties to empty values.

Topics

Modifying the Parts of a Postal Address

var street: String

The street name of the address.

var city: String

The city name of the address.

var state: String

The state name of the address.

var postalCode: String

The postal code of the address.

var country: String

The country name of the address.

var isoCountryCode: String

The ISO country code, using the ISO 3166-1 alpha-2 standard.

var subAdministrativeArea: String

The subadministrative area (such as a county or other region) in a postal address.

var subLocality: String

Additional information associated with the location, typically defined at the city or town level, in a postal address.

Relationships

Inherits From

Conforms To

See Also

Addresses

class CNPostalAddress

An immutable representation of the postal address for a contact.

class CNInstantMessageAddress

An immutable object representing an instant message address for the contact.

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