Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

9. Address Book Frameworks

Chapter 9. Address Book Frameworks

The iPhone SDK provides two frameworks for managing the address book: a low-level data access framework (AddressBook.framework) and a high-level user interface kit (AddressBookUI.framework). Because your application runs in a sandbox, it’s not allowed to directly interface with the address book’s underlying SQLite database. In this chapter, you’ll learn how to query contact information using C-language function calls and how to use the UI for selecting contacts.

If your application is using the address book, you’ll need to learn about the C-based data access functions, whether or not you choose to add an address book user interface. These functions allow you to read and write information about contacts. Since you’re dealing with another individual’s personal data, it’s very important to ensure that your code is accurate and respectful of the user’s wishes before changing anything. Unlike the Core Location framework, the user is never prompted to grant permission to your application before using the address book. This could change in future versions of iPhone firmware, due to the privacy risk it poses. Using the address book frameworks to harvest personal informa....


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint