Type Method

comparator(forNameSortOrder:)

Returns a comparator to sort contacts with the specified order.

Declaration

class func comparator(forNameSortOrder sortOrder: CNContactSortOrder) -> Comparator

Parameters

sortOrder

The preferred sort order, such as by given name.

Return Value

A comparator to order contacts.

See Also

Comparing Contacts

class func descriptorForAllComparatorKeys() -> CNKeyDescriptor

Fetches all the keys required for the contact sort comparator.

func isUnifiedWithContact(withIdentifier: String) -> Bool

Returns a Boolean indicating whether the current contact is a unified contact and includes a contact with the specified identifier.

enum CNContactSortOrder

Indicates the sorting order for contacts.