Questions tagged [cncontactformatter]

The CNContactFormatter class defines the different formatting styles for contacts. This class handles international ordering and delimiting for the contact name components. When formatting many contacts, create an instance of this class and use the instance methods; otherwise use the class methods.

4 questions
18
votes
2 answers

Which keys do I need for CNContactFormatter?

I'm trying to format a contact's name using the new CNContactFormatter. It looks like, I didn't fetch all needed name properties of the contact. Terminating app due to uncaught exception 'CNPropertyNotFetchedException', reason: 'A property was not…
flohei
  • 5,248
  • 10
  • 36
  • 61
0
votes
0 answers

How do I use CNContactFormatter to generate a more versatile and intricate string to display contact information in iOS using Swift and Xcode?

I have been playing around with CNContactFormatter. I went through the documentation at Apple's official website for the documentation for this. CNContactFormatter doesn't do much. Is there a way for me to use this formatter to produce a string that…
daniel
  • 1,446
  • 3
  • 29
  • 65
0
votes
0 answers

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

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…
Crashalot
  • 33,605
  • 61
  • 269
  • 439
0
votes
1 answer

How to load all contacts in an array ios9

AddressBook api is deprecated in ios 9. I want to load all contacts in an array and display it in a UITableView. I don't want to use iOS default ContactPicker as I have to do some customization while displaying. How to load all contact list in an…
Rashad
  • 11,057
  • 4
  • 45
  • 73