Latest 0.1.1
Homepage https://github.com/dfmuir/KINBarCodeScanner
License MIT
Platforms ios 7.0, requires ARC
Frameworks AVFoundation
Authors

A barcode scanner module for your iOS apps.

KINBarCodeScanner

Features

  • Supports barcodes and QR codes
  • iOS 7 & 8 support for iPhone and iPad
  • Customizable on-the-fly bar code format validation
  • Touch to select from multiple codes
  • Built-in Flashlight
  • Portrait and landscape orientation support
  • Customizable UI
  • Optional vibration on code detection
  • Installation with CocoaPods

Example Project

The KINBarCodeScanner example project contains a fully functional example of a KINBarCodeScanner implementation. Test it out using the graphic below.
Example QR Codes

The example project provides a number of options to demonstrate KINCodeScanner’s code validation capabilties. When multiple codes are highlighted in green as detectable, you can tap on a code to select it.

Overview

KINBarCodeScanner provides a UIViewController wrapper to AVCaptureSession’s built-in ability to process barcodes and QR codes in iOS 7+.

KINBarCodeScanner consists of a single component:

KINBarCodeScannerViewController – a UIViewController that contains a full featured bar code scanner.

Basic Example

KINBarCodeScannerViewController should be presented modally.

KINBarCodeScannerViewController *barCodeScannerViewController = [[KINBarCodeScannerViewController alloc] init];
barCodeScannerViewController.delegate = self;
[self presentViewController:barCodeScannerViewController animated:YES completion:nil];

Advanced Initialization Example

KINBarCodeScannerViewController can be initialized to detect only specific code types. The following example configures KINBarCodeScannerViewController to only detect QR codes.

KINBarCodeScannerViewController *barCodeScannerViewController = [[KINBarCodeScannerViewController alloc] initWithMetadataObjectTypes:@[AVMetadataObjectTypeQRCode]];

initWithMetadataObjectTypes accepts an NSArray of AVMetadataObjectType string constants.

Installation With CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the "Getting Started" for more information.

Podfile

platform :ios, '7.0'
pod 'KINBarCodeScanner'

Latest podspec

{
    "name": "KINBarCodeScanner",
    "version": "0.1.1",
    "summary": "A barcode scanner module for your iOS apps.",
    "description": "KINCodeScammer is a simple bar code scanner module for your apps. Supports barcodes and QR codes. Compatible with iOS 7 and iOS 8.",
    "homepage": "https://github.com/dfmuir/KINBarCodeScanner",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "David F. Muir V": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/dfmuir/KINBarCodeScanner.git",
        "tag": "0.1.1"
    },
    "source_files": [
        "KINBarCodeScanner",
        "KINBarCodeScanner/**/*.{h,m}"
    ],
    "resources": "Assets/*.png",
    "frameworks": "AVFoundation",
    "requires_arc": true
}

Pin It on Pinterest

Share This