An immutable object that stores information about a single contact, such as the contact's first name, phone numbers, and addresses.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- watchOS 2.0+
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
mutable method to obtain a
CNMutable object with the same information. After modifying the mutable contact, save your changes back to the contacts database using the
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.