I have an implementation of AVCaptureSession and my goal is for the user to take a photo and only save the part of the image within the red square border, as shown below:
You can crop images with CGImageCreateWithImageInRect:
CGImageCreateWithImageInRect
CGImageRef imageRef = CGImageCreateWithImageInRect([uncroppedImage CGImage], bounds); UIImage *croppedImage = [UIImage imageWithCGImage:imageRef]; CGImageRelease(imageRef);