ABNewPersonViewController Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AddressBookUI.framework
Availability
Available in iOS 2.0 and later.
Declared in
ABNewPersonViewController.h
Related sample code

Overview

The ABNewPersonViewController class (whose instances are known as new-person view controllers) implements the view controller used to create a contact.

New-person view controllers are modal view controllers that manage a set of view controllers used to create a contact (ABPersonRef) and edit its properties.

Tasks

Displaying Person Properties

Configuring New Person Views

Properties

addressBook

Optional. The address book to which the new contact is added.

@property(nonatomic, readwrite) ABAddressBookRef addressBook
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
ABNewPersonViewController.h

displayedPerson

Optional. Specifies the person properties that the new-person view controller pre-fills in its views.

@property(nonatomic, readwrite) ABRecordRef displayedPerson
Discussion

When this property has no person properties, the new-person view controller does not pre-fill properties in its views.

Availability
  • Available in iOS 2.0 and later.
Declared In
ABNewPersonViewController.h

newPersonViewDelegate

The delegate of a new-person view controller.

@property(nonatomic, assign) id<ABNewPersonViewControllerDelegate> newPersonViewDelegate
Discussion

The delegate must adopt the ABNewPersonViewControllerDelegate formal protocol.

Availability
  • Available in iOS 2.0 and later.
Related Sample Code
Declared In
ABNewPersonViewController.h

parentGroup

Optional. Specifies the group to which to add the new contact on save.

@property(nonatomic, readwrite) ABRecordRef parentGroup
Discussion

You must set addressBook before you can set this property.

Availability
  • Available in iOS 2.0 and later.
Declared In
ABNewPersonViewController.h

Did this document help you? Yes It's good, but... Not helpful...