开发者

iPhone Address Book - Actual Addresses [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

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 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜