UIImagePickerController, which allows incorrect porting of the image, leaving a black bar on top

I use the UIImagePickerController in a popover on the iPad to take a picture with the front camera. I set allowEditing to YES and get a stunning built-in "Move and Scale" view after shooting. The crop rectangle in this view displays 320x267 on the screen, even though the image is cropped to a square of 320x320 ( http://dl.dropbox.com/u/2246698/moveAndScale.png ). If I accept the image in a way that it does not change or move, there is a black strip ~ 25 pixels wide on the top surface, as if the crop rectangle was too high in the image ( http://dl.dropbox.com/u/2246698/ cropped.png) In fact, if I get this crop rectangle from the info dictionary (via UIImagePickerControllerCropRect), it shows that the y-start of the crop rectangle is at -39. It seems broken that the image will not be cropped correctly by default and usually when it seems broken because I did it wrong. Has anyone ever seen this or was aware of some settings that may be useful to my cultures?

Many thanks.

+5
source share
1 answer

. , , , . , , - โ€‹โ€‹ .

, , , .

.

+4

All Articles