ABPersonViewController Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AddressBookUI.framework |
| Availability | Available in iOS 2.0 and later. |
| Declared in | ABPersonViewController.h |
Overview
The ABPersonViewController class (whose instances are known as person view controllers) implements the view used to display a person record (ABPersonRef).
Tasks
Displaying Person Properties
-
displayedPersonproperty -
displayedPropertiesproperty -
shouldShowLinkedPeopleproperty
Configuring Person Views
-
addressBookproperty -
allowsActionsproperty -
allowsEditingproperty -
– setHighlightedItemForProperty:withIdentifier: -
personViewDelegateproperty
Properties
addressBook
Optional. The address book from which to obtain the contact to display.
Discussion
When unset, an address book is created and assigned to this property when needed.
Availability
- Available in iOS 2.0 and later.
Declared In
ABPersonViewController.hallowsActions
Specifies whether the to display buttons for actions such as sending a text message or initiating a FaceTime call.
Availability
- Available in iOS 5.0 and later.
Declared In
ABPersonViewController.hallowsEditing
Specifies whether the user can edit the person’s information.
Discussion
When editing a person’s information, all person properties are visible.
Availability
- Available in iOS 2.0 and later.
Declared In
ABPersonViewController.hdisplayedPerson
The person displayed by the person view.
Discussion
The receiver displays the properties of this person record that are present in displayedProperties.
Availability
- Available in iOS 2.0 and later.
Declared In
ABPersonViewController.hdisplayedProperties
Optional. Identifies the set of properties (such as name or telephone number) of displayedPerson the receiver displays.
Discussion
The default value of this property is NULL.
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.
Declared In
ABPersonViewController.hpersonViewDelegate
The person-view controller delegate.
Discussion
The delegate must adopt the ABPersonViewControllerDelegate protocol.
Availability
- Available in iOS 2.0 and later.
Declared In
ABPersonViewController.hshouldShowLinkedPeople
Indicates whether the person view should display data from person records that are linked with the person record being displayed.
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.
Declared In
ABPersonViewController.hInstance Methods
setHighlightedItemForProperty:withIdentifier:
Specifies whether to highlight a particular property of the displayed person.
Parameters
- property
The property to highlight.
- identifier
When property is a multivalue property, the value to highlight.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
ABPersonViewController.h© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-07-17)