我需要从联系人处获取图像和名称。我有id但我无法获取信息,因为该方法已弃用,如何在Swift中实现?
ABAddressBookRef addressBook = ABAddressBookCreate();
ABRecordID recordId = (ABRecordID)[contactId intValue];
ABRecordRef person = ABAddressBookGetPersonWithRecordID(addressBook, recordId);
谢谢!