Instance Method

update(_:)

Updates an existing contact in the contact store.

Declaration

func update(_ contact: CNMutableContact)

Parameters

contact

The contact to update.

Discussion

The contact to be updated must already exist in the contact store. If it does not, the update request fails, the CNErrorCodeRecordDoesNotExist error occurs, and the CNErrorUserInfoAffectedRecordsKey array is updated to contain the object. Note that the contact may be modified when the save request is executing.

See Also

Saving a Contact Changes

func add(CNMutableContact, toContainerWithIdentifier: String?)

Adds the specified contact to the contact store.

func delete(CNMutableContact)

Deletes a contact from the contact store.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software