如何在AddressBook中访问电话号码标签 [英] how can I access the label of phone number in AddressBook
本文介绍了如何在AddressBook中访问电话号码标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用以下代码
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
家4564645645646
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;
}
这篇关于如何在AddressBook中访问电话号码标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文