Getting Address Book Up and Running

The first thing you need to do before working with the Address Book frameworks is to link both frameworks in your project. You need to be concerned with two frameworks: AddressBookUI.framework and AddressBook.framework. The first of these frameworks handles the graphical user interface for picking, editing, or displaying contacts, and the second handles all the interaction layers to work with that data. You need to import two headers, as shown here:

#import <AddressBook/AddressBook.h>#import <AddressBookUI/AddressBookUI.h>

In the sample app, the headers are imported in RootViewController.h since the class will need to conform to several delegates, which is discussed later. You ...

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK 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.