开发者

how can I access the label of phone number in AddressBook

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜