iPhone地址簿自定义属性 [英] iPhone Address Book custom property
问题描述
我正在开发一个类似于iphone的本机通讯录应用程序的应用程序。我想在本地iphone通讯录数据库中添加其他属性/字段。例如每个联系人(AT& T)的网络运营商。
I am developing an application which is similar to native contact book app of iphone. I want to add additional property/field in native iphone address book database. e.g. network carrier of each contact (AT&T).
如何从我们的应用访问本地通讯录数据库?
How to access the database of native address book from our app? Is that possible to do?
推荐答案
您不能添加自定义字段。您可以在Notes字段中添加数据,但不能在AddressBook Person类中添加任何自定义字段。您可以扩展AddressBook,但需要将数据保存在其他位置,并将Person链接到保存的数据。
You cannot add custom fields. You can add data into the Notes field, but not add any custom fields into the AddressBook Person class. 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框架。
You can access the data from the address book using the AddressBook framework.
这篇关于iPhone地址簿自定义属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!