I just figured out a way to change rect for crop box which appears after capturing an image from UIImagePickerViewController. This can be done with help of UIImagePickerControllerCropRect. But I have no idea how to use it. Originally the crop box is square. I want it to be rectangular.
Can someone share an example with me?
You cannot do this using the built in UIImagePickerController functionality. Unfortunately, you can’t control the size of the crop box.
Here is a project on github that may help you accomplish what you are looking to do (checkout
YSImageCrop.h).Basically, the bottom line is that you have to implement the UIImagePickerController functionality yourself. I believe the UIImagePickerWithEditor project is a good place to start.