AddressBookUI provides a set of legacy UIKit view controllers for picking, viewing, and creating address book contacts on iOS. Present ABPeoplePickerNavigationController to let users choose an existing contact, ABPersonViewController to display a contact's details, and ABNewPersonViewController or ABUnknownPersonViewController to create or resolve a contact record. Each controller reports the user's selections and actions back to your app through its companion delegate protocol, such as ABPeoplePickerNavigationControllerDelegate and ABPersonViewControllerDelegate.
Picking Contacts 2
Present a navigation interface that lets the user choose an existing contact from the address book.
- ClABPeoplePickerNavigationControllerA navigation controller that lets the user select a contact or contact property from the address book.
- PrABPeoplePickerNavigationControllerDelegateA protocol that reports the contact or property the user selects in a people picker.
Viewing a Contact 2
Display the details of an existing contact record.
- ClABPersonViewControllerA view controller that displays the details of an existing address book contact.
- PrABPersonViewControllerDelegateA protocol that handles user interaction with properties shown in a contact's details view.
Creating a Contact 2
Collect information from the user to create a new contact record.
- ClABNewPersonViewControllerA view controller that prompts the user to create a new contact record in the address book.
- PrABNewPersonViewControllerDelegateA protocol that reports when the user finishes or cancels creating a new contact.
Resolving an Unknown Contact 2
Present partial contact data and let the user add it to an existing or new contact.
- ClABUnknownPersonViewControllerA view controller that presents partial contact data so the user can add it to an existing or new contact.
- PrABUnknownPersonViewControllerDelegateA protocol that reports the contact the user resolves from unknown person data.