Contents

peoplePickerNavigationController(_:shouldContinueAfterSelectingPerson:property:identifier:)

Sent when the user selects one of a person’s properties.

Declaration

optional func peoplePickerNavigationController(_ peoplePicker: ABPeoplePickerNavigationController, shouldContinueAfterSelectingPerson person: ABRecord, property: ABPropertyID, identifier: ABMultiValueIdentifier) -> Bool

Parameters

  • peoplePicker:

    The people-picker navigation controller with which the user interacted.

  • person:

    The person whose contact information item the user selected.

  • property:

    The property the user selected.

  • identifier:

    The identifier for the value the user selected if property is a multivalue property; otherwise, kABMultiValueInvalidIdentifier.

Return Value

true to perform the action for the property selected and dismiss the picker. false to show the person in the picker.

Discussion

This method is called with an identifier. If you need an index, use the ABMultiValueGetIndexForIdentifier(_:_:) function to get the corresponding index.

See Also

Responding to User Events