凯发集团线路
  咨询电话:15245038202

K8国际手机版

iOS vcard使用示例,生成vcf文件

使用方式:

id<LKVcardGeneratorProtocol> object = [LKVcardGenerator vcardGeneratorWithVcardVersion:LKVcardVersion_3];

    [object beginVcard];

    

    [object lk_makeGeneratorVcard:^(LKVcardMaker *maker) {

        maker.N(@"laowang").with.FN(@"laoli");

        maker.EMAIL(@"1905204056000@qq.com");

        maker.EMAIL(@"2220520405656555@qq.com");

        maker.EMAIL(@"22205204056565666@qq.com");

        maker.lk2D_EMAIL(@"190092392@qq.com",@"TYPE=WORK");

        maker.lk2D_PHOTO(@"http://**.png",@"VALUE=uri");

        maker.lk2D_TEL(@"18333939399",@"TYPE=WORK,VOICE");

        maker.lk2D_TEL(@"18333939399",@"TYPE=HOME,VOICE");

        maker.ORG(@"腾讯集团");

        maker.lk_CUSTOM(@"xiaofeng",@"X-TC-Name");

        maker.lk_CUSTOM(@"1535334681941",@"X-TC-VCARD-UPDATE-TIME");

        maker.lk_CUSTOM(@"yuufhhdg@t.email",@"X-TC-TMAIL");

        maker.lk_CUSTOM(@"1535323468819407",@"X-TC-CARD-ID");

    }];

    

    [object endVcard];

, 1, 0, 9);