| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AddressBookUI.framework |
| Availability | Available in iPhone OS 2.0 and later. |
| Declared in | ABPersonViewController.h |
The ABPersonViewController class (whose instances are known as person view controllers) implements the view used to display a person record (ABPersonRef).
displayedPerson property
displayedProperties property
addressBook property
allowsEditing property
– setHighlightedItemForProperty:withIdentifier:
personViewDelegate property
For more about Objective-C properties, see “Properties” in The Objective-C Programming Language.
Optional. The address book from which to obtain the contact to display.
@property(nonatomic, readwrite) ABAddressBookRef addressBook
When unset, an address book is created and assigned to this property when needed.
ABPersonViewController.hSpecifies whether the user can edit the person’s information.
@property(nonatomic) BOOL allowsEditing
When editing a person’s information, all person properties are visible.
ABPersonViewController.hThe person displayed by the person view.
@property(nonatomic, readwrite) ABRecordRef displayedPerson
The receiver displays the properties of this person record that are present in displayedProperties.
ABPersonViewController.hOptional. Identifies the set of properties (such as name or telephone number) of displayedPerson the receiver displays.
@property(nonatomic, copy) NSArray *displayedProperties
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.
ABPersonViewController.hThe person-view controller delegate.
@property(nonatomic, assign) id<ABPersonViewControllerDelegate> personViewDelegate
The delegate must adopt the ABPersonViewControllerDelegate protocol.
ABPersonViewController.hSpecifies whether to highlight a particular property of the displayed person.
- (void)setHighlightedItemForProperty:(ABPropertyID)property withIdentifier:(ABMultiValueIdentifier)identifier
The property to highlight.
When property is a multivalue property, the value to highlight.
ABPersonViewController.hLast updated: 2009-05-26