0

How to copy images of all address book contacts onto an array, and later display it in Table view?

Cœur
  • 37,241
  • 25
  • 195
  • 267
ibiren
  • 673
  • 6
  • 25
  • This SO question has your answer. http://stackoverflow.com/questions/3874595/can-i-get-and-use-the-contact-picture-in-my-app – geraldWilliam Sep 28 '12 at 14:22

1 Answers1

0

I don't have any code samples for you, but I have APIs that you should call.

You need to delve into the AddressBook docs.

ABAddressBookGetPersonCount - gets the amount of persons in an ABAddressBookRef ABAddressBookCopyArrayOfAllPeople - gets an array of all the people in the book. ABPersonCopyImageData and ABPersonCopyImageDataWithFormat will get you each person's image.

There are plenty of well defined examples of how to show images in a table, probably right on this website. Look into playing with UTableView, UITableViewCell, UITableViewDelegate & UITableViewDataSource.

Hope this helps!

Dan Morrow
  • 4,433
  • 2
  • 31
  • 45