I load a contacts picture from the address book using the following code:
- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier{
UIImage *image = [UIImage imageWithData:(NSData *)ABPersonCopyImageData(person)];
return NO;
}
However, this code returns the full image that is stored rather than the cropped version, that is shown in various places, like the Addressbook.
I found the answer here: https://stackoverflow.com/a/6953492/784318