I'm trying to store the thumbnail for a contact in the address book.
The following allows me to retrieve both the thumbnail and the full image:
ABPersonCopyImageDataWithFormat(contactRef, kABPersonImageFormatOriginalSize);
(NSData*)ABPersonCopyImageDataWithFormat(contactRef, kABPersonImageFormatThumbnail);
And this allows me to store the full image:
ABPersonSetImageData(contactRef, (__bridge CFDataRef)UIImagePNGRepresentation(selectedImage), nil);
But I cannot figure out how to store the thumbnail. There doesn't seem to be a method that takes kABPersonImageFormatThumbnail
as a parameter to store the image. Is this possible?