0

I'm pulling images from the camera roll to display in my app, and portrait taken pictures work just fine, but landscape images get all funky smushed together.

UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];        

displayPhoto.image = image;

I've figured out how to check the length and width of the pictures themselves, and therefore can do an if else statement to only rotate landscape pictures... but trying to find working code to actually rotate the images is difficult. I found an answer here, but he's calling functions that don't exist, and clearly the code did not work for me :p. Any assistance would be greatly appreciated. Thanks.

Community
  • 1
  • 1
Jeff Stone
  • 319
  • 1
  • 4
  • 14

1 Answers1

0

u have to use

      [displayPhoto setContentMode:UIViewContentModeScaleAspectFit];