How to get contacts detail of iphone and make CSV file of that contact

后端 未结 4 1014
囚心锁ツ
囚心锁ツ 2020-12-14 12:56

I want to get contact details in an iPhone with information like First Name, Last Name, Phone Number, Phone Number Type, Email Address, Email Address Type etc..

Can

4条回答
  •  离开以前
    2020-12-14 13:15

    Following is the code to get all informations of iPhone contact book...

        -(void)collectContacts
        {
            NSMutableDictionary *myAddressBook = [[NSMutableDictionary alloc] init];
            ABAddressBookRef addressBook = ABAddressBookCreate();
            CFArrayRef people  = ABAddressBookCopyArrayOfAllPeople(addressBook);
            for(int i = 0;i

提交回复
热议问题