O'Reilly logo

iPhone Programming: The Big Nerd Ranch Guide by Joe Conway, Aaron Hillegass

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

Figure 22.1. Homepwner with Address Book

image

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required