iOS Reference Library Apple Developer
Search

ABNewPersonViewControllerDelegate Protocol Reference

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

Overview

The ABNewPersonViewControllerDelegate protocol declares the interface that ABNewPersonViewController delegates must implement.

Tasks

Responding to User Events

Instance Methods

newPersonViewController:didCompleteWithNewPerson:

Sent when the user taps Save or Cancel. If the user tapped Save, the current address book has been saved to the Address Book database. (required)

- (void)newPersonViewController:(ABNewPersonViewController *)newPersonViewController didCompleteWithNewPerson:(ABRecordRef)person

Parameters
newPersonViewController

The new-person-view controller that manages the new-person interface.

person

On Save, the newly created (and saved) person record.

On Cancel, NULL.

Discussion

If the user tapped Save, pending changes in the current address book (ABAddressBook) have been saved by the time this message is sent to the receiver.

The receiver must dismiss newPersonViewController.

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



Last updated: 2009-05-15

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