iPhone Address Book - Actual Addresses [closed]
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this questionI'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?
Here is an explanation with example:AddressBook programming
You might want to retrieve kABAddressStreetKey from the kABAddressProperty
Good luck!
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.
精彩评论