![]() ĪBMutableMultiValueRef multi = ABRecordCopyValue(ref, kABPersonAddressProperty) įor (CFIndex i = 0 i < ABMultiValueGetCount(multi) i++) NSString *phoneNumber = (NSString *)phoneNumberRef NSString *phoneLabel =(NSString*) ABAddressBookCopyLocalizedLabel (ABMultiValueCopyLabelAtIndex(phones, j)) init] ĪBMultiValueRef phones = ABRecordCopyValue(ref, kABPersonPhoneProperty) įor(CFIndex j = 0 j < ABMultiValueGetCount(phones) j++)ĬFStringRef phoneNumberRef = ABMultiValueCopyValueAtIndex(phones, j) NSString *jobTitle = (NSString *)ABRecordCopyValue(ref,kABPersonJobTitleProperty) NSString *suffix = (NSString *)ABRecordCopyValue(ref,kABPersonSuffixProperty) NSString *lastName = (NSString *)ABRecordCopyValue(ref,kABPersonLastNameProperty) NSString *firstName = (NSString *)ABRecordCopyValue(ref,kABPersonFirstNameProperty) ![]() Get First name, Last name, Prefix, Suffix, Job title NSMutableDictionary *myAddressBook = init] ĪBAddressBookRef addressBook = ABAddressBookCreate() ĬFArrayRef people = ABAddressBookCopyArrayOfAllPeople(addressBook) įor(int i = 0 iis the code to get all informations of iPhone contact book.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |