Contents

CNLabeledValue

An immutable object that combines a contact property value with a label that describes that property.

Declaration

class CNLabeledValue<ValueType> where ValueType : NSCopying, ValueType : NSSecureCoding

Overview

Labels describe the context for a property. For example, the label for a phone number indicates whether it corresponds to the user’s home, work, or iPhone number.

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

Topics

Creating a labeled value

Getting the label and value

Setting labels and values

Localizing the label and value

Getting the unique identifier

Getting common labels

Getting phone number labels

Getting immediate family relationship labels

Getting acquaintance relationship labels

Getting business relationship labels

Getting education relationship labels

Getting in-law relationship labels

Getting extended family relationship labels

Initializers

See Also

Generic Types