views:

70

answers:

1

i'm loading photos from my library just fine, but photos coming from he camera don't display in the imageView. I've set allowsImageEditing = YES. I've also used CFShow(info) and the data from the camera is not nil...

 - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{   
    UIImage *image = [info objectForKey:@"UIImagePickerControllerEditedImage"];

    [self.imageView setImage:image];
    [self dismissModalViewControllerAnimated:YES];
    [picker release];   
}
A: 

Did you turn on the allowsEditing property of the UIImagePicker? If not, it's not going to return you an editedImage. You'll probably want:

UIImagePickerControllerOriginalImage

John Wang
allowsImageEditing is set to YES for both source types
yesimarobot