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.