views:

912

answers:

1

when opening working with an UIImagePickerController and setting allowsImageEditing = YES; there is a default cropping frame that is 320x320. In my case, I would like to setup that cropping frame to 320x240 for images that are landscape, and 240x320 for images that are portrait. However, I haven't been able to find a way to change that 320x320 frame that is used when editing /cropping a photo. Has any of you found a way to do it?

Thanks!

+2  A: 

You have to implement it your self.

The picker only performs 320x320 cropping.

So instead set

allowsImageEditing = NO;

Now you will get the full image back. Then you will have to create a view/view controller that will crop to the proportions you desire.

Corey Floyd