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
Contacts is pretty forgiving and will do its best to import your vCard, however it seems that your address is not correct. There should be 7 parameters, separated by semicolons: PO box, Suite #, street address, city, state, ZIP, country. Most people leave off the PO box (and suite #), which is why a typical address has a semicolon (or two) at the beginning. If your address is ill-formed, parameters might end up in the wrong places.
The various fields in a vCard are terminated by a
: @"\r"
You don't need CHARSET=utf-8