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

10. Address Book > 10.4. Inserting a Person Entry into the Address Book

10.4. Inserting a Person Entry into the Address Book

Problem

You want to create a new person contact and insert it into the user’s address book.

Solution

Use the ABPersonCreate function to create a new person. Set the person’s properties using the ABRecordSetValue function and add the person to the address book using the ABAddressBookAddRecord function.

Discussion

After accessing the address book database using the ABAddressBookCreate function, you can start inserting new group and person records into the database. In this recipe, we will concentrate on inserting new person records. For information about inserting new groups into the address book, please refer to Recipe 10.5.


  

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