views:

32

answers:

0

I've come across posts mentioning that you can set the maximum dimensions of a photo returned by the UIImagePickerController camera capture (UIImagePickerControllerSourceTypeCamera), but can't figure out exactly how to do it. Can anyone provide some actual code?

I am trying to return an image with maximum width of 768px, and I also want to accept photos that are shot in portrait only.

Initially I was resizing and cropping the photo returned but the iPhone 3G just can't handle the memory challenge.