I am taking an image from camera and showing it to image view from UIImagePickerController.
Now if I rotate the device then it takes the picture in landscape view and image dimensions change from 1936*2592(that is for portrait) to 2592*1936.

Now I want to display the same image in my portrait view exactly like the default camera do.

Please tell me how can I do that?
or is it possible to lock UIImagePicker to portrait only?

Hi,Thanks for the suggestion but I have already tried this method, If width>height then it will fix the image according to that and I will get width more than height according to aspect ratio and I will be left with blank space in UIImageView
–
RahulJul 7 '13 at 4:30