I am using AVCaptureMetadataOutput in order to use iOS QRCode,barcode scanning feature. This works well, and I get the result of scanning through AVCaptureMetadataOutput delegate method
-(void)captureOutput:(AVCaptureOutput *)captureOutput didOutputMetadataObjects:(NSArray *)metadataObjects fromConnection:(AVCaptureConnection *)connection{
But I don't know how to capture the image of scanned qrcode,barcode with the data I have in this delegate.
I have
captured imagewhilescanning QRCodelike this:1) Firstly add property of
AVCaptureStillImageOutput's2) Add session preset in
AVCaptureSessionafter initializing it3) Now add
AVCaptureStillImageOutput'sas output inAVCaptureSession4) Make add below code to capture scanned image in delegate method
captureOutput:didOutputMetadataObjects:fromConnection:connectionFor reference use CodeScanViewController
Thats it @Enjoy