Two-dimensional code scanning
Available: iOS7 system Library, ZBARSDK, ZXing
1. IOS7 start system with QR Code scanning library
2. Setting up dependent libraries
Avfoundation.framework
3. Include Header files
--Contains header files
#import <AVFoundation/AVFoundation.h>
4. Scanning the Core method
#pragma mark-read QR code
-(void) Readqrcode
5. Core methods for processing scan results
This method is recognized in the QRCode, and the conversion is completed
If the content of the QRCode is larger, the longer the conversion takes
-(void) Captureoutput: (Avcaptureoutput *) captureoutput didoutputmetadataobjects: (Nsarray *) metadataobjects Fromconnection: (avcaptureconnection *) connection
Two-dimensional code generation
Using Library Libqrencode
1. Importing the SDK in the project
2. Include Header files
#import "QRCodeGenerator.h"
3. Generate QR Code core method
UIImage * image = [qrcodegenerator qrimageforstring:_textfield.text imagesize:_showcodeimageview.bounds.size.width];
QR Code for IOS development