Generate vCard from AddressBook.framework

后端 未结 3 1943
孤城傲影
孤城傲影 2020-12-07 19:17

I\'m utilising the AddressBook.framework in my iPhone app, and I\'d like to replicate something along the lines of the share feature in Contacts.app. This basically attach\'

3条回答
  •  旧巷少年郎
    2020-12-07 19:51

    There does not appear to be any publicly posted code to do this. The Mac version of AddressBook.framework does have an ABPersonCopyVCardRepresentation(), but there is no equivalent on the iPhone.

    Probably your best bet would be to take an existing parser/builder (such as the PEAR builder and parser) and translate them to Objective-C.

    Another option might be to write your own builder. The grammar for vCards is not a difficult one.

提交回复
热议问题