Sets the primary value to be the value for the given identifier.


func ABMultiValueSetPrimaryIdentifier(_ multiValue: ABMutableMultiValueRef!, _ identifier: CFString!) -> Bool



The multi-value list you wish to modify.


The identifier corresponding to the value you wish to designate as the primary value for this multi-value list. Use the ABMultiValueCopyIdentifierAtIndex(_:_:) function to get the identifier given the index. If identifier is NULL, this function raises an exception.

Return Value

true if successfully, false otherwise.

See Also

Multi Values

func ABMultiValueCount(ABMultiValueRef!) -> CFIndex

Returns the number of entries in a multi-value list.

func ABMultiValueCreateMutable(ABPropertyType) -> Unmanaged<ABMutableMultiValue>!

Returns a newly created mutable multi-value list object.

func ABMultiValuePropertyType(ABMultiValueRef!) -> ABPropertyType

Returns the type for the values in a multi-value list.

func ABMultiValueRemove(ABMutableMultiValueRef!, CFIndex) -> Bool

Removes the value and label at the given index.