Instance Method

removeMember(_:from:)

Removes a contact as a member of a group.

Declaration

func removeMember(_ contact: CNContact, from group: CNGroup)

Parameters

contact

The contact to remove from the group membership.

group

The group to remove the contact from its membership.

Discussion

This method removes the contact from the group, but does not delete it from the contact store. This method overrides any previously made add membership request on the contact to the group.

See Also

Saving Group Changes

func update(CNMutableGroup)

Updates an existing group in the contact store.

func delete(CNMutableGroup)

Deletes a group from the contact store.

func addMember(CNContact, to: CNGroup)

Adds a contact as a member of a group.

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