GEQRCodeView 介绍
GEQRCodeView 是一个简单的二维码扫描 ViewController。简单易用。在 iOS7 下使用 Apple 提供的 SDK
扫描二维码,快速。为了兼容 iOS6,又将 zbar 集成进来。根据版本不同切换不同的引擎。
使用
在将要打开二维码扫描的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];
GEQRCodeView 官网
https://github.com/lerosua/GEQRCodeView
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。