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
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

10. Address Book > 10.8. Retrieving and Setting a Person’s Address Book Image

10.8. Retrieving and Setting a Person’s Address Book Image

Problem

You want to be able to retrieve and set the images of address book people entries.

Solution

Use one of the following functions:

ABPersonHasImageData

Use this function to find out if an address book entry has an image set.

ABPersonCopyImageData

Use this function to retrieve the image data (if any).

ABPersonSetImageData

Use this function to set the image data for an entry.

Discussion

As mentioned in this recipe’s Solution, we can use the ABPersonCopyImageData function to retrieve the data associated with an image of a person entry in the address book. We can use this function in a method of our own to make it more convenient to use:


  

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