iOS自带API集成二维码、条形码扫描

源码于 :https://github.com/wangjinfeng/ScanForiOSAPI/tree/main

 

1.AVFoundation.framework,QuartzCore.framework

2.引入ScanViewController.h&ScanViewController.m文件到工程中,在需要调用扫描的Controller里import ScanViewController.h

3.实现ScanResultDelegate代理方法,获得扫描结果

扫描结果以字符串返回,需要跳转干嘛的可以DIY。

 

posted @ 2015-01-20 15:05  water.wjf  阅读(367)  评论(0编辑  收藏  举报