iOS Developer Library

Developer

AddressBookUI Framework Reference ABUnknownPersonViewControllerDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

ABUnknownPersonViewControllerDelegate

Inheritance


Not Applicable

Conforms To


Import Statement


Swift

import AddressBookUI

Objective-C

@import AddressBookUI;

Availability


Available in iOS 2.0 and later.

The ABUnknownPersonViewControllerDelegate protocol describes the interface ABUnknownPersonViewController delegates must adopt to respond to unknown-person view user events.

  • Sent when the user finishes creating a contact or adding the displayed person properties to an existing contact. (required)

    Declaration

    Swift

    func unknownPersonViewController(_ unknownPersonView: ABUnknownPersonViewController!, didResolveToPerson person: ABRecord!)

    Objective-C

    - (void)unknownPersonViewController:(ABUnknownPersonViewController *)unknownPersonView didResolveToPerson:(ABRecordRef)person

    Parameters

    unknownPersonView

    The unknown-person view controller that sent the message.

    The receiver must dismiss this view controller.

    person

    The contact the user created or to which they added information. This record is saved in the Address Book database.

    NULL when the user cancelled the interaction.

    Import Statement

    Objective-C

    @import AddressBookUI;

    Swift

    import AddressBookUI

    Availability

    Available in iOS 2.0 and later.

  • Sent when the user selects a property value of the person displayed in a person view controller.

    Declaration

    Swift

    optional func unknownPersonViewController(_ unknownPersonViewController: ABUnknownPersonViewController!, shouldPerformDefaultActionForPerson person: ABRecord!, property property: ABPropertyID, identifier identifier: ABMultiValueIdentifier) -> Bool

    Objective-C

    - (BOOL)unknownPersonViewController:(ABUnknownPersonViewController *)unknownPersonViewController shouldPerformDefaultActionForPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier

    Parameters

    unknownPersonViewController

    The sender.

    person

    The person unknownPersonViewController is displaying.

    property

    The property whose value the user selected.

    identifier

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

    Return Value

    • YEStrue if unknownPersonViewController should perform its default action. Your application may quit as a result of this action.

    • NOfalse: if unknownPersonViewController should do nothing. The delegate may perform custom action processing.

    Import Statement

    Objective-C

    @import AddressBookUI;

    Swift

    import AddressBookUI

    Availability

    Available in iOS 3.0 and later.