Skip to content

Instantly share code, notes, and snippets.

@ayushgoel
Created March 13, 2014 07:18
Show Gist options
  • Save ayushgoel/9523250 to your computer and use it in GitHub Desktop.
Save ayushgoel/9523250 to your computer and use it in GitHub Desktop.
Getting image from contact as UIImage in iOS
UIImage *contactImage = ({
NSData *imageData = CFBridgingRelease(ABPersonCopyImageDataWithFormat(person, kABPersonImageFormatOriginalSize));
[UIImage imageWithData:imageData];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment