iOS Developer Library — Prerelease

Developer

Address Book UI Framework Reference for iOS ABPersonViewController Class Reference

Options
Deployment Target:

On This Page
Language:

ABPersonViewController

The ABPersonViewController class (whose instances are known as person view controllers) implements the view used to display a person record (ABPersonRef).

Subclassing Notes

The ABPersonViewController class does not support subclassing.

  • The person displayed by the person view.

    Declaration

    Swift

    var displayedPerson: ABRecord

    Objective-C

    @property(nonatomic, readwrite) ABRecordRef displayedPerson

    Discussion

    The receiver displays the properties of this person record that are present in displayedProperties.

    Availability

    Available in iOS 2.0 and later.

    Deprecated in iOS 9.0.

  • Identifies the set of properties (such as name or telephone number) of displayedPerson the receiver displays.

    Declaration

    Swift

    var displayedProperties: [NSNumber]?

    Objective-C

    @property(nonatomic, copy) NSArray <NSNumber *> *displayedProperties

    Discussion

    The default value of this property is NULL.

    Name properties are always displayed.

    The properties are specified using an array of NSNumber objects representing ABPropertyID values.

    To have the receiver display a single property for displayedPerson, such as telephone number, set displayedProperties to an array with a single value, such as kABPersonPhoneProperty.

    Availability

    Available in iOS 2.0 and later.

    Deprecated in iOS 9.0.

  • Indicates whether the person view should display data from person records that are linked with the person record being displayed.

    Declaration

    Swift

    var shouldShowLinkedPeople: Bool

    Objective-C

    @property(nonatomic) BOOL shouldShowLinkedPeople

    Discussion

    Linked records represent the same actual person. They often come from different sources, but may also come from the same source.

    Availability

    Available in iOS 4.0 and later.

    Deprecated in iOS 9.0.