Posted by: bearc0025 | July 9, 2010

ABPeoplePickerNavigationController – Mac Forums

ABMultiValueGetIndexForIdentifier(multiValue, identifier)

I had this problem and it was driving me cRaZy!!!!

As MacDonaldsd states:

You need to use the ABMultiValueGetIndexForIdentifier() to get the index. The identifier isn’t the index of that property.

And you have to reconcile the identifier to the index like this:

ABMultiValueRef multiValue = ABRecordCopyValue(person, property);

NSString *number = (NSString *)ABMultiValueCopyValueAtIndex(multiValue, ABMultiValueGetIndexForIdentifier(multiValue, identifier));

via ABPeoplePickerNavigationController – Mac Forums.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: