【发布时间】:2014-06-26 04:27:31
【问题描述】:
我正在尝试将联系人的缩略图存储在通讯簿中。
以下允许我检索缩略图和完整图像:
ABPersonCopyImageDataWithFormat(contactRef, kABPersonImageFormatOriginalSize);
(NSData*)ABPersonCopyImageDataWithFormat(contactRef, kABPersonImageFormatThumbnail);
这让我可以存储完整的图像:
ABPersonSetImageData(contactRef, (__bridge CFDataRef)UIImagePNGRepresentation(selectedImage), nil);
但我不知道如何存储缩略图。似乎没有一种方法可以将kABPersonImageFormatThumbnail 作为参数来存储图像。这可能吗?
【问题讨论】:
标签: ios contacts addressbook abaddressbook abperson