0

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.

Crashalot
  • 33,605
  • 61
  • 269
  • 439
  • Duplicate of [Contact address format for different countries](https://stackoverflow.com/questions/11134997/contact-address-format-for-different-countriesm) – iOS Dec 05 '18 at 09:45
  • @iOS thanks for the link, but those answers only explain how to format a string based on different countries. the goal is to know which fields to display to a user if you're creating a custom contact form. – Crashalot Dec 05 '18 at 17:53

0 Answers0