I need to get the reference URL for the stored image of a contact.
If I'm getting an image from a UIImagePickerController
, I can get that simply by doing this.
NSURL *imageURL = [info objectForKey:UIImagePickerControllerReferenceURL];
But how do I get this NSURL for an image of a contact from the Address Book?
UIImage *contactImage = [UIImage imageWithData:CFBridgingRelease(ABPersonCopyImageData(ref))];
i.e. get the reference URL for contactImage
.