GEQRCodeView 0.0.3

GEQRCodeView 0.0.3

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最新发布2014年12月

lerosua 维护。



 
依赖
ZBarSDK~> 1.3.1
libqrencode~> 3.4.2
 

  • lerosua

GEQRCodeView 是一个简单的二维码扫描 ViewController。简单易用。在 ios7 下使用 apple 提供的 SDK 扫描二维码,快速。为了兼容 ios6,又将 zbar 集成进来。根据版本不同切换不同的引擎。

Podfile

CocosPods 是推荐安装 DWZShareKit 的方法,只需将以下行添加到 Podfile 中:

pod 'GEQRCodeView'

如何使用

在将要打开二维码扫描的 ViewController 里继承 QRReaderDelegate 协议,并实现以下方法

#pragma mark - qrReader delegate
- (void) qrReaderViewController:(UIViewController *)view didFinishPickingInformation:(NSString *)info
{
    [view dismissViewControllerAnimated:YES completion:^{

        //todo...

    }];
}
- (void) qrReaderDismiss:(UIViewController *)view
{
    [view dismissViewControllerAnimated:YES completion:nil];
}

打开二维码界面

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

许可证

中文: GERQCodeView 是在 MIT 协议下使用的,相关的使用协议信息可以在 LICENSE 文件中找到。

English: GERQCodeView is available under the MIT license, see the LICENSE file for more information.