我尝试为每个值输入一个字符串,但出现错误,有人可以演示如何将数字添加到ABPerson
这里是我的尝试:
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);
}