0

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

Abizern
  • 146,289
  • 39
  • 203
  • 257
Ali
  • 10,774
  • 10
  • 56
  • 83

1 Answers1

0

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;
}
Abizern
  • 146,289
  • 39
  • 203
  • 257
Ali
  • 10,774
  • 10
  • 56
  • 83
  • 2
    HI @Ali remember when you post any block of code tap 4 spaces before the lines of code,that will convert simple lines into actual code snippet. – Aditya Jan 18 '11 at 11:15