22. Address Book
Any application can access the iPhone’s contact database. You can read from and write to that database, and you also have access to the interface elements of the Address Book. In this chapter, you will add Address Book support to your Homepwner application. In particular, you will specify which contact in your address book will inherit a possession in the case of your death.
The People Picker
To get a person-picking interface like the Contacts application, you will use ABPeoplePickerNavigationController
.
Open Homepwner.xcodeproj
, and add both AddressBook.framework
and AddressBookUI.framework ...
Get iPhone Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.