An immutable representation of the postal address for a contact.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- watchOS 2.0+
Framework
- Contacts
Declaration
class CNPostalAddress : NSObject
Overview
CNPostal
is a thread-safe class.
An immutable representation of the postal address for a contact.
SDKs
Framework
class CNPostalAddress : NSObject
CNPostal
is a thread-safe class.
var street: String
The street name in a postal address.
var city: String
The city name in a postal address.
var state: String
The state name in a postal address.
var postal Code: String
The postal code in a postal address.
var country: String
The country name in a postal address.
var iso Country Code: String
The ISO country code for the country in a postal address, using the ISO 3166-1 alpha-2 standard.
var sub Administrative Area: String
The subadministrative area (such as a county or other region) in a postal address.
var sub Locality: String
Additional information associated with the location, typically defined at the city or town level, in a postal address.
class func localized String(for Key: String) -> String
Returns the localized name for the property associated with the specified key.
let CNPostal Address Street Key: String
The street name of the address.
let CNPostal Address City Key: String
The city of the address.
let CNPostal Address State Key: String
The state name of the address.
let CNPostal Address Postal Code Key: String
The postal code of the address.
let CNPostal Address Country Key: String
The country name of the address.
let CNPostal Address ISOCountry Code Key: String
The ISO country code of the address.
class CNMutable Postal Address
A mutable representation of the postal address for a contact.
class CNInstant Message Address
An immutable object representing an instant message address for the contact.