PQScanner 0.1.3

PQScanner 0.1.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jan 2016

Maintained by Docee.



PQScanner 0.1.3

  • By
  • Docee

PQScanner is an awesome QR code and Barcode scanner base on iOS7 SDK.

Usage

Step One:

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;

Step Two:

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;

Step Three:

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;

Step Four:

Continue scan

Once PQScanner decoded the code , PQScanner will stop scan. At this time, You need to invoking continueScan method.

-(void)continueScan;

Requirements

iOS 7.0 above

Installation

PQScanner is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'PQScanner', '~> 0.1.0'

Author

Docee, [email protected]

License

PQScanner is available under the MIT license. See the LICENSE file for more info.