Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从通讯簿中检索所有地址并将它们显示在表格视图中,但我无法理解返回街道地址的字典的结构。有谁知道用于提取地址簿中联系人的街道地址的教程或相关代码段?
下面是一个例子的解释:地址簿编程
您可能想从 kABAddressProperty 检索 kABAddressStreetKey
祝你好运!
对于未来的读者,您想要的链接是iOS 版本。有一个适用于 iOS 的 AddressBook 框架和一个适用于 Mac OS 的框架,因此它们有单独的文档。它在第二章中有一个关于街道地址的部分。