Instance Method

initWithDisplayName:handles:handleIdentifier:

Returns a new CSPerson object initialized with the specified display name and contact attributes.

Declaration

- (instancetype)initWithDisplayName:(NSString *)displayName handles:(NSArray<NSString *> *)handles handleIdentifier:(NSString *)handleIdentifier;

Parameters

displayName

The name of the person in a user-displayable string.

handles

An array of contact handles, such as phone number or email address.

handleIdentifier

A property key that specifies a handle type, such as CNContactEmailAddressesKey.

Return Value

An initialized person object that represents a user’s contact.