开发者

how can I access the label of phone number in AddressBook

开发者 https://www.devze.com 2023-02-05 18:53 出处:网络
I am using following code ABMultiValueRef multi = ABRecordCopyValue(i1开发者_JAVA技巧, kABPersonPhoneProperty);

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;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消