CNContact: how to know which postal address properties to display for a given country?

104 Views Asked by At

The goal is to create a custom form for entering contact addresses.

If you edit a contact's properties with a CNContactViewController on iOS, the properties in a postal address change based on the country.

For instance, Afghanistan postal addresses don't show a postal code, but Argentina does. Hong Kong lists two fields for the street name.

Is there a way to programmatically know which properties of a postal address should be shown, given a certain country?

CNPostalAddress and CNPostalAddressFormatter don't seem to allow this.

0

There are 0 best solutions below