Latest 1.1.2
Homepage https://github.com/Dwarven/QRCode-Decoder
License MIT
Platforms ios 8.0
Authors

QRCode-Decoder

CocoaPods Compatible
Platform
Twitter
License
Carthage compatible

An iOS QRCode Scanner and Decoder

Preview

DYQRCodeDecoder
DYQRCodeDecoder

Podfile

To integrate QRCode-Decoder into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'DYQRCodeDecoder'

How to use

#import "DYQRCodeDecoderViewController.h"

DYQRCodeDecoderViewController *vc = [[DYQRCodeDecoderViewController alloc] initWithCompletion:^(BOOL succeeded, NSString *result) {
    if (succeeded) {
        NSLog(@"%@", result);
    } else {
        NSLog(@"failed");
    }
}];
[vc setTitle:@"string"];
[vc setNeedsScanAnnimation:YES or NO];

[[vc leftBarButtonItem] setImage:[UIImage imageNamed:@"your image name"]];
[[vc rightBarButtonItem] setImage:[UIImage imageNamed:@"your image name"]];
//or
[[vc leftBarButtonItem] setTitle:@"string"];
[[vc leftBarButtonItem] setTitle:@"string"];

[vc setNavigationBarTintColor:[UIColor lightGrayColor]];

[vc setFrameImage:[UIImage imageNamed:@"your image name"]];
[vc setLineImage:[UIImage imageNamed:@"your image name"]];

UINavigationController *navVC = [[UINavigationController alloc] initWithRootViewController:vc];
[self presentViewController:navVC animated:YES completion:NULL];

Enjoy

Latest podspec

{
    "name": "DYQRCodeDecoder",
    "version": "1.1.2",
    "summary": "An iOS QRCode Scanner and Decoder.",
    "homepage": "https://github.com/Dwarven/QRCode-Decoder",
    "platforms": {
        "ios": "8.0"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Dwarven": "[email protected]"
    },
    "social_media_url": "https://twitter.com/DwarvenYang",
    "source": {
        "git": "https://github.com/Dwarven/QRCode-Decoder.git",
        "tag": "1.1.2"
    },
    "source_files": "Class/*.{h,m}",
    "resources": "Class/*.png"
}

Pin It on Pinterest

Share This