iOS Developer Library

Developer

AddressBookUI Framework Reference ABPersonViewControllerDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

ABPersonViewControllerDelegate

Inherits From


Not Applicable

Import Statement


Swift

import AddressBookUI

Objective-C

@import AddressBookUI;

Availability


Available in iOS 2.0 and later

The ABPersonViewControllerDelegate protocol declares the interface that must be implemented by ABPersonViewController delegates.

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

    Declaration

    Swift

    func personViewController(_ personViewController: ABPersonViewController!, shouldPerformDefaultActionForPerson person: ABRecord!, property property: ABPropertyID, identifier valueIdentifier: ABMultiValueIdentifier) -> Bool

    Objective-C

    - (BOOL)personViewController:(ABPersonViewController *)personViewController shouldPerformDefaultActionForPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)valueIdentifier

    Parameters

    personViewController

    The sender.

    person

    The person personViewController is displaying.

    property

    The property whose value the user selected.

    valueIdentifier

    When property is a multivalue property, the value the user selected.

    Return Value

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

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

    Import Statement

    Objective-C

    @import AddressBookUI;

    Swift

    import AddressBookUI

    Availability

    Available in iOS 2.0 and later