I am designing a QR code reader, and it needs to detect and import contact cards in vCard format (.vcf).
is there a way to add the card data to the system Address Book d
Carter Allen's answer worked for me except that it caused my app to crash on the final statement CFRelease(book);
It turns out that the CFRelease(person);
statement should be removed. Doing so stopped my app from crashing. See this answer for explanation https://stackoverflow.com/a/1337086/881103
Also checkout The Create Rule and The Get Rule sections on this page https://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html