问题
I am using following code
ABMultiValueRef multi = ABRecordCopyValue(i1, kABPersonPhoneProperty);
if(ABMultiValueGetCount(multi)>0){
NSString *no= (NSString*)ABMultiValueCopyValueAtIndex(multi, 0);
alarmData.no1=no;
}
This returns the phone number on particular location,but how can I access the label on that location i.e
home 4564645645646
回答1:
I found the answers using follwing code
ABMultiValueRef multi = ABRecordCopyValue(i1, kABPersonPhoneProperty);
if(ABMultiValueGetCount(multi)>0){
NSString no= (NSString)ABMultiValueCopyLabelAtIndex(multi, 0);
alarmData.no1=no;
}
来源:https://stackoverflow.com/questions/4720880/how-can-i-access-the-label-of-phone-number-in-addressbook