iOS vcard使用示例,生成vcf文件
使用方式:
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Menlo; color: #93c96a; background-color: #282b35 }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Menlo; color: #ffffff; background-color: #282b35 }
p.p3 { margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Menlo; color: #ffffff; background-color: #282b35; min-height: 18.0px }
p.p4 { margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Menlo; color: #e44347; background-color: #282b35 }
span.s1 { color: #c2349b }
span.s2 { color: #ffffff }
span.s3 { color: #93c96a }
span.s4 { color: #e44347 }
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];