我正试图从接触书上取得所有联系,然后根据要求处理。
我正在收集使用......的所有接触的名称和编号。
NSString *strFNm=(NSString *) ABRecordCopyValue(ref,kABPersonFirstNameProperty);
ABMultiValueRef phoneNumbers = ABRecordCopyValue(ref, kABPersonPhoneProperty);
我在把每个名字和接触扩大到两个不同的阵列。
This all thing works correctly in simulator names and arrays in array (displayed with NSLog) however when I try to check the same thing in device array is always empty ... there is nothing in the array. (The contact book in device is having 127 contacts).
如果有任何解决办法,请将此事写到底。