I try to put in a string for each of the values and I get errors, can someone demonstrate how to add numbers to an ABPerson here is my attempt:
if (_cellNumber) {
ABRecordSetValue(person, kABPersonPhoneMobileLabel, (__bridge CFTypeRef)(_lastName), NULL);
}
if (_workNumber) {
ABRecordSetValue(person, kABWorkLabel, (__bridge CFTypeRef)(_lastName), NULL);
}
if (_defaultNumber) {
ABRecordSetValue(person, kABPersonPhoneMainLabel, (__bridge CFTypeRef)(_lastName), NULL);
}
The numbers in ABRecord are a multi-value property that you can not set like that.
Have a look at this link