Title: ABRecordRef vCard
Tags: iphone;objective-c;ios;abaddressbook;vcf-vcard
Question: I would like to convert a ```ABRecordRef``` into an ```vCard``` or ```NSData``` to transmit it via Bluetooth. I've run into your question and I wonder if you were able to figure out how to do it.

Thank you



Here is another answer: Is very easy, I'm working with iOS 6 and I done with the following code:

```ABRecordRef person = (__bridge ABRecordRef)[_ABRecordCards objectAtIndex:0];
ABRecordRef people[1];
people[0] = person;
CFArrayRef peopleArray = CFArrayCreate(NULL, (void *)people, 1, &amp;kCFTypeArrayCallBacks);
NSData *vCardData = CFBridgingRelease(ABPersonCreateVCardRepresentationWithPeople(peopleArray));
NSString *vCard = [[NSString alloc] initWithData:vCardData encoding:NSUTF8StringEncoding];
NSLog(@"vCard &gt; %@", vCard);
```

I have a ```NSArray``` with ```ABRecordRef``` elements...

Comment for this answer: No need for temporary ABRecordRef array. You can just use    CFArrayRef peopleArray = CFArrayCreate(NULL, (void *)&person, 1, &kCFTypeArrayCallBacks);
Comment for this answer: hello can you tell me how can i add all contact in one v card ?
Comment for this answer: yes this is possible and i have one Application and i have to do this after long time !!!

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2010:00:02/25/10', 'FavoriteCount': 2.0, 'PostTypeId': 1, 'Tags': '<iphone><objective-c><ios><abaddressbook><vcf-vcard>', 'Title': 'ABRecordRef vCard', 'ViewCount': 2407, 'id': 2338470, 'user_AboutMe': None, 'user_AccountId': 592049.0, 'user_DisplayName': 'Luis', 'user_Reputation': 31.0, 'user_Views': 9.0, 'user_id': 281688.0}}