Contents

CNContact

An immutable object that stores information about a single contact, such as the contact’s first name, phone numbers, and addresses.

Declaration

class CNContact

Overview

A CNContact object stores an immutable copy of a contact’s information, so you cannot change the information in this object directly. Contact objects are thread-safe, so you may access them from any thread of your app.

To modify a contact’s information, call the mutableCopy() method to obtain a CNMutableContact object with the same information. After modifying the mutable contact, save your changes back to the contacts database using the CNContactStore object.

Every contact in the contacts database has a unique ID, which you access using the identifier property. The mutable and immutable versions of the same contact have the same identifier.

Topics

Identifying the Contact

Getting Name Information

Getting Work Information

Getting Addresses

Getting Phone Information

Getting Social Profiles

Getting Birthday Information

Getting Notes

Getting Contact Images

Getting Related Information

Localizing Contact Data

Comparing Contacts

Checking the Availability of Data

Getting Search Predicates

Initializers

Instance Properties

See Also

Contact data