I am using following code
ABMultiValueRef multi = ABRecordCopyValue(i1开发者_JAVA技巧, 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
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;
}
精彩评论