Question

I'm trying to retrieve all the addresses from the address book and display them in a tableview, but I am having trouble understanding the structure of the dictionary for which street addresses are returned. Does anyone know of a tutorial or relevant code snippet for extracting the street address(es) of contacts in the AddressBook?

Was it helpful?

Solution

Here is an explanation with example:AddressBook programming

You might want to retrieve kABAddressStreetKey from the kABAddressProperty

Good luck!

OTHER TIPS

For future readers, the link you want is the iOS version. There's an AddressBook framework for iOS and one for Mac OS, so they have separate documentation. It has a section on street addresses in the second chapter.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top