Can we access the emailids from the contactlist from iPhone?

前端 未结 2 1880
星月不相逢
星月不相逢 2021-02-01 11:33

Can we access all the email IDs for each contact from the iPhone contactlist through code?

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 11:56

    You will get the individual email ids by given code...

        ABAddressBookRef addressBook = ABAddressBookCreate();
        CFArrayRef people  = ABAddressBookCopyArrayOfAllPeople(addressBook);
        NSString *contactName = lblTitle.text;
        for(int i = 0;i

提交回复
热议问题