Adding vCard data directly to the system Address Book

后端 未结 3 909
悲&欢浪女
悲&欢浪女 2021-02-03 11:42

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

3条回答
  •  再見小時候
    2021-02-03 12:11

    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

提交回复
热议问题