简体   繁体   English

iPhone地址簿自定义属性

[英]iPhone Address Book custom property

I am developing an application which is similar to native contact book app of iphone. 我正在开发一个类似于iphone的原生联系人应用程序的应用程序。 I want to add additional property/field in native iphone address book database. 我想在本机iphone地址簿数据库中添加其他属性/字段。 eg network carrier of each contact (AT&T). 例如每个联系人的网络运营商(AT&T)。

How to access the database of native address book from our app? 如何从我们的应用程序访问本机地址簿的数据库? Is that possible to do? 这可能吗?

You cannot add custom fields. 您无法添加自定义字段。 You can add data into the Notes field, but not add any custom fields into the AddressBook Person class. 您可以将数据添加到Notes字段中,但不能将任何自定义字段添加到AddressBook Person类中。 You can extend the AddressBook but you will need to save the data somewhere else and link the Person to the data you saved. 您可以扩展AddressBook,但是您需要将数据保存在其他位置,并将Person链接到您保存的数据。

You can access the data from the address book using the AddressBook framework . 您可以使用AddressBook框架从通讯簿中访问数据。

addPropertiesAndTypes仅适用于Mac OS

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM