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.
我必须从通讯录中选择多个联系人并保存到我的应用程序中。现在,如果我从通讯簿中删除任何联系人并且它是以前保存在我的应用程序中的联系人,为了恢复已删除的联系人,我需要创建 vcf 文件。
如果您正在为 iOS 5.0 或更高版本进行开发,请使用以下方法:
CFArrayRef ABPersonCreatePeopleInSourceWithVCardRepresentation(ABRecordRef 源,CFDataRef vCardData) CFArrayRef ABPersonCreateVCardRepresentationWithPeople (CFArrayRef people)
CFArrayRef ABPersonCreatePeopleInSourceWithVCardRepresentation(ABRecordRef 源,CFDataRef vCardData)
CFArrayRef ABPersonCreateVCardRepresentationWithPeople (CFArrayRef people)
文档在这里:http: //developer.apple.com/library/ios/#documentation/AddressBook/Reference/ABPersonRef_iPhoneOS/Reference/reference.html
注意:-仔细阅读文档将对您开发整个项目有很大帮助。