これは、画像データを持っているメソッドであり、その画像はカメラロールに書き込まれます
CGImageRef cgImageResult = [self newSquareOverlayedImageForFeatures:features
inCGImage:srcImage
withOrientation:curDeviceOrientation
frontFacing:isUsingFrontFacingCamera];
if (srcImage)
CFRelease(srcImage);
CFDictionaryRef attachments = CMCopyDictionaryOfAttachments(kCFAllocatorDefault,
imageDataSampleBuffer,
kCMAttachmentMode_ShouldPropagate);
[self writeCGImageToCameraRoll:cgImageResult withMetadata:(id)attachments];