Latest 0.0.2
Homepage https://github.com/KellenYangs/SYScanCodeViewController
License MIT
Platforms ios 8.0, requires ARC
Authors

扫描条形码/二维码
感兴趣的给个Star吧…

CocoaPods:

pod 'SYScanCodeViewController', '~> 0.0.2'

Usage:

由于iOS10访问相册与相机需要权限,所以首先要在info.plist配置一下
Privacy – Photo Library Usage Description Or NSPhotoLibraryUsageDescription
Privacy – Camera Usage Description Or NSCameraUsageDescription

导入头文件

#import "SYScanCodeViewController.h"
SYScanCodeViewController *scan = [[SYScanCodeViewController alloc] initWithSuccessBlock:^(NSString *codeInfo) {
    NSLog(@"%@", codeInfo);
}];

可以选择相册

scan.showAlbum = YES;

标题

scan.navTitle = @"扫一扫";

提示文字

scan.tipTitle = @"将二维码/条码放入框内,即可自动扫描";

返回按钮图片名称

scan.backImageName = @"back";

效果图

SYScanCodeViewController

iteration:

0.0.2 – 发布第一个版本,读取相册不支持条形码,只支持二维码,测试只发现微信可以,支付宝不行…

Other:

使用中有任何问题,请将问题发送给我,谢谢大家帮忙完善!
Email: [email protected]

Latest podspec

{
    "name": "SYScanCodeViewController",
    "version": "0.0.2",
    "summary": "u5febu901fu521bu5efau4e8cu7ef4u7801/u6761u5f62u7801u626bu63cfu63a7u5236u5668",
    "description": "u5febu901fu521bu5efau4e8cu7ef4u7801/u6761u5f62u7801u626bu63cfu63a7u5236u5668,u5305u62ecu4eceu76f8u518cu9009u62e9uff0cu751fu6210u4e8cu7ef4u7801u4e0eu6761u5f62u7801",
    "homepage": "https://github.com/KellenYangs/SYScanCodeViewController",
    "license": "MIT",
    "authors": {
        "Shenyang": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/KellenYangs/SYScanCodeViewController.git",
        "tag": "0.0.2"
    },
    "source_files": "SYScanCodeViewController/**/*.{h,m}",
    "resources": "SYScanCodeViewController/SYScan.bundle",
    "requires_arc": true
}

Pin It on Pinterest

Share This