I’m using UIImagePickerController in my app to take pictures and I’m using my own controls, which means that the UIImagePickerController showsCameraControls property is set to NO and I have a UIButton inside the overlayView that shoots the pictures. Now, I noticed that the image that I save in the Photo Library is actually showing a bigger area than what shows in the preview view. Has anybody else had the same issue? Any solution to get the picture showing just what was in the preview?
I’m using UIImagePickerController in my app to take pictures and I’m using my own
Share
By preview I assume, you are talking about image picker interface (and not the Default preview screen that appears after dismissing the image picker interface).
The transforms you apply to image picker interface (using cameraViewTransform) donot reflect on the image taken. For example, if you are trying to zoom (in and out) applying scale, you need to apply the same(transform) on the image obtained in order to keep the image in image picker interface and actual saved image in sync.
Also you will have to consider the image orientation into consideration while applying the transforms.