Instance Property

identifier

A value that uniquely identifies a contact on the device.

Declaration

iOS, Mac Catalyst, watchOS
@property(readonly, copy, nonatomic) NSString *identifier;
macOS
@property(readonly, copy, atomic) NSString *identifier;

Discussion

It is recommended that you use the identifier when re-fetching the contact. An identifier can be persisted between the app launches. Note that this identifier only uniquely identifies the contact on the current device.

See Also

Identifying the Contact

contactType

An enum identifying the contact type.

CNContactType

The types a contact can be.