TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jan 2016 |
Maintained by Docee.
PQScanner is an awesome QR code and Barcode scanner base on iOS7 SDK.
PQScanner only provides a constructor method.
You need to set up capture display view and delegate at first.
- (instancetype)initWithTargetView:(UIView *)targetView
withDelegate:(id)delegate;
Setup AVCapture.
At this time, Application will apply for camera control.
If users refuse , that will trigger
-(void)scanner:(PQScanner *)scanner
didOpenCaptureFaild:(NSError *)error
callback.
You need to set up capture display view and delegate at first.
-(void)setupAVCapture;
Start scan
PQScaner provides block and delegate method to callback data.
So the
-(void)scanner:(PQScanner *)scanner
didEncodeQRCode:(NSString *)encodeStr codeType:(NSString *)codeType
callback and block will receive callback at the same time.
-(void)startScan:(ResultBlock)block;
Continue scan
Once PQScanner decoded the code , PQScanner will stop scan. At this time, You need to invoking continueScan method.
-(void)continueScan;
iOS 7.0 above
PQScanner is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'PQScanner', '~> 0.1.0'
Docee, [email protected]
PQScanner is available under the MIT license. See the LICENSE file for more info.