Latest 2.0.1
Homepage https://github.com/icemanbsi/BSQRCodeReader
License MIT
Platforms ios 8.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/Bobby Stenly/BSQRCodeReader.svg?style=flat)](https://travis-ci.org/Bobby Stenly/BSQRCodeReader)
Version
License
Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod "BSQRCodeReader"

How To Use

To use this reader, add a custom UIView to your View Controller then change the UIView class and module to BSQRCodeReader. As usual, you can make an outlet in your controller. See the code below :

@IBOutlet weak var reader: BSQRCodeReader!

override func viewDidLoad() {
    super.viewDidLoad()
    self.reader.delegate = self
}

override func viewDidAppear(animated: Bool) {
    super.viewDidAppear(animated)
    self.reader.startScanning()
}

Now you are one step away before you can read QR Code from your app. The last thing, add BSQRCodeReaderDelegate to your UIViewController class and write down your code in func didCaptureQRCodeWithContent(content: String) -> Bool.

func didCaptureQRCodeWithContent(content: String) -> Bool {
    //do something with your QR Code content
    // return true if you want to stop the scanning 
    // return false if you want to continue the scanning
    return true
}

Author

Bobby Stenly, [email protected]

License

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

Latest podspec

{
    "name": "BSQRCodeReader",
    "version": "2.0.1",
    "summary": "QR Code Reader that fits your page design.",
    "description": "This plugin is created to read QR Code inside your app. BSQRCodeReader is inherited from UIView so you can use your own page design and include this reader to be part of your layout.",
    "homepage": "https://github.com/icemanbsi/BSQRCodeReader",
    "license": "MIT",
    "authors": {
        "Bobby Stenly": "[email protected]"
    },
    "source": {
        "git": "https://github.com/icemanbsi/BSQRCodeReader.git",
        "tag": "2.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {}
}

Pin It on Pinterest

Share This