A mutable 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+Beta
- watchOS 2.0+
CNMutable objects are not a thread-safe class. To access the contact information in a thread-safe manner, use a
CNContact object instead.
You may modify only those properties whose values you fetched from the contacts database. When fetching a contact, you specify which properties you want to retrieve from the database. The contact store then populates the properties of a
CNContact object with those values. After creating a mutable copy of that object, you can modify only those properties for which a value exists. If you attempt to access a property that is not available, the
CNMutable object throws a
To remove the value for a property, set string and array properties to empty, and set all other properties to