This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
ABUnknownPerson help!
Post Body

So I'm trying to create a contact that has a first name, last name, phone email and company that is all loaded from text fields on an earlier page.

I got the email and phone properties to load when adding the contact, but i have no idea on how to add the other fields. to be specific, its in the following lines:

ABMultiValueRef firstName = ABMultiValueCreateMutable(kABStringPropertyType);
bool didAdd = ABMultiValueAddValueAndLabel(firstName, (__bridge CFTypeRef)(self.nameLabel.text), kABOtherLabel, NULL);

ABRecordSetValue(aContact, kABPersonOrganizationProperty, firstName, &anError);

my problem lies within the CFStringRef, I don't know what to use for that value. It crashes when it reaches the last line of code. also didAdd is checked to be true before executing the last line.

Author
Account Strength
80%
Account Age
12 years
Verified Email
No
Verified Flair
No
Total Karma
9,167
Link Karma
4,152
Comment Karma
4,855
Profile updated: 4 days ago
Posts updated: 5 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
11 years ago