Class

CNContactRelation

An immutable object that represents the relationship between one contact to another.

Declaration

@interface CNContactRelation : NSObject

Overview

CNContactRelation objects are thread-safe, and you may access their properties from any thread of your app.

Topics

Creating a Contact Relation Object

- initWithName:

Creates an object with the name of the related contact.

+ contactRelationWithName:

Instantiate a class instance with the name of the related contact.

Getting the Relation Name

name

The name of the related contact.

Getting the Common Relationship Labels

CNLabelContactRelationSpouse

The label for the contact's spouse.

CNLabelContactRelationPartner

The label for the contact's partner.

CNLabelContactRelationDaughter

The label for the contact's daughter.

CNLabelContactRelationSon

The label for the contact's son.

CNLabelContactRelationChild

The label for the contact's child.

CNLabelContactRelationFather

The label for the contact's father.

CNLabelContactRelationMother

The label for the contact's mother.

CNLabelContactRelationParent

The label for the contact's parent.

CNLabelContactRelationBrother

The label for the contact's brother.

CNLabelContactRelationSister

The label for the contact's sister.

CNLabelContactRelationFriend

The label for the contact's friend.

CNLabelContactRelationAssistant

The label for the contact's assistant.

CNLabelContactRelationManager

The label for the contact's manager.

Relationships

Inherits From