We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this doesn't work, unfortunately:
[socialProfiles addValue:@"myKey" withLabel:RHPersonSocialProfileServiceKey]; [socialProfiles addValue:@"myValue" withLabel:RHPersonSocialProfileUsernameKey]
I'm looking for a replacement for
ABMultiValueRef social = ABMultiValueCreateMutable(kABMultiDictionaryPropertyType); { CFStringRef valueCFString = (__bridge CFStringRef) value; CFStringRef keys[] = { kABPersonSocialProfileServiceKey, kABPersonSocialProfileUsernameKey }, values[] = { CFSTR("myKey"), CFSTR("myValue") }; ABMultiValueAddValueAndLabel(social, CFDictionaryCreate(kCFAllocatorDefault, (void *) keys, (void *) values, 3, NULL, NULL), NULL, NULL); } CFErrorRef error; ABRecordSetValue(rhPerson.recordRef, kABPersonSocialProfileProperty, social, &error); CFRelease(social);
thanks a LOT!
The text was updated successfully, but these errors were encountered:
socialProfiles can be thought of as an array. You need to create a new dictionary and then add it to social profiles.
Sorry, something went wrong.
you're sure this should work? If I add a value like this
[socialProfilesMutable addValue:@"myValue" withLabel:@"myLabel"];
I only have the label stored in my contact, not the value...
No branches or pull requests
this doesn't work, unfortunately:
I'm looking for a replacement for
thanks a LOT!
The text was updated successfully, but these errors were encountered: