0

I want to export Address book from iPhoneSDK to vcard file using base64decode. I don't know how iPhoneSDK save file and How to export Contact to Vcard file? Import is easy for me. Somebody can help me with my problem?

Himanshu
  • 31,810
  • 31
  • 111
  • 133
user1561904
  • 243
  • 3
  • 11

1 Answers1

3

If you're using iOS 5 or later there's a function in ABPerson that can return the vCard representation of the given person records:

 CFDataRef ABPersonCreateVCardRepresentationWithPeople(CFArrayRef people);

Update: If you need sample code for generating vCard that uses base64 click here

Sumanth
  • 4,913
  • 1
  • 24
  • 39