1

I have to select multiple contacts from address book and saving to my App. Now If I delete any of the contact from Address Book & it is the one previously saved in my app,In order to restore deleted contact i need to create vcf file.

gagan sharma
  • 256
  • 1
  • 4
  • 18

1 Answers1

2

If you are developing for iOS 5.0 or later then use following methods:

CFArrayRef ABPersonCreatePeopleInSourceWithVCardRepresentation ( ABRecordRef source, CFDataRef vCardData )

CFArrayRef ABPersonCreateVCardRepresentationWithPeople ( CFArrayRef people )

And documentation is here : http://developer.apple.com/library/ios/#documentation/AddressBook/Reference/ABPersonRef_iPhoneOS/Reference/reference.html

Note:- Reading documentation carefully will help you a lot to develop entire project.

gagan sharma
  • 256
  • 1
  • 4
  • 18