iPhone Address Book custom property

╄→尐↘猪︶ㄣ 提交于 2019-12-22 11:23:40

问题


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?


回答1:


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.

You can access the data from the address book using the AddressBook framework.




回答2:


addPropertiesAndTypes is only available on Mac OS



来源:https://stackoverflow.com/questions/2122592/iphone-address-book-custom-property

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!