In my application, I take pictures imagewith the camera and use UIImagePickerit to squeeze it. But the problem is that when I shoot the image from the camera in landscape mode, while hacking it in potrait mode, a black box is displayed on the image.
The image is taken in landscape mode -

, and while using this image, a black box is displayed at the top and bottom of the image, as shown in the figure below -

but I want to remove the black parts to imagecover the whole area.
How can i do this?
source
share