Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

munkees

macrumors 65816
Original poster
Sep 3, 2005
1,027
1
Pacific Northwest
I want to take photos in landscape, I can capture the image using UIImagePicker, but when I apply them to my landscape image view they are stretched.

I know in the Developer documentation, it states that the camera can only take photos in Portrait, but I have noticed that the camera app (apples camera app) , allow this to be saved landscape if you turn the camera on landscape when snapping a photo.

How can I take my captured image and apply it to my UIImageView so the image is not stretched?
 
Stretching or scaling is related to the aspect ratio of the image and the image view. The contentMode of the image view controls how the scaling is done. Adjusting the frame of the image view and/or the contentMode of the image view should get you what you want.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.