如何在Swift的地址簿中获取联系人的信息?

时间:2014-08-20 11:18:44

标签: ios swift xcode6

我需要从联系人处获取图像和名称。我有id但我无法获取信息,因为该方法已弃用,如何在Swift中实现?

 ABAddressBookRef addressBook = ABAddressBookCreate();
    ABRecordID recordId = (ABRecordID)[contactId intValue];
    ABRecordRef person = ABAddressBookGetPersonWithRecordID(addressBook, recordId);

谢谢!

0 个答案:

没有答案