Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
I've been working through this issue for a while, and all searches, resources are thin. Perhaps one of you might have the answer.
I'm using a UIImagePickerController with allowsImageEditing = YES. Everything except one thing works fine. I can take the image from the photo library and resize the edited image to a rect that is 160 pixels larger then the image given. The editInfo gives you an image of size 320 x 320 be default, and ergo a cropping rect of 320 x 320, or smaller depending if they zoomed in. Then I alter the image rect. I do some stuff so it keeps the same scaling but adds the extra height, giving my final picture output the size of 320 x 480.
The problem is when I use the following sourceType for my picker: UIImagePickerControllerSourceTypePhotoLibrary. It allows me to pick an image from the 'camera roll'. This is fine, but once I pick a picture from the 'camera roll' the cropping rect it gives me is 432 x 433 (provided no zooming was done). The image size is still 320 x 480 (as all my images in the bin are).
So, to sum it up. Could anyone explain why the editInfo in my didFinishPicking method gives me a croppingRect of something larger than 320x320, even when the image it gives me is 320x320?
I must be missing something simple for this unless it's a problem in the API?
If I am missing any information about anything, or you just feel you need more information, please just post here and I will respond.
Thanks in advance for any help/suggestions.
I'll post my method that shows how I alter the image. The code is not mine and has been posted around the internet for a while. This is the one method that handles it.