swift 二维码扫描
支持闪关灯自动检测
支持焦距调整
##使用: ###示例代码
scanControl = MLScanControl(frame: view.bounds, style:.alipay)
scanControl.offsetY = -100
view.addSubview(scanControl)
scanControl.result { (result) -> (Void) in
if let _ = result {
}
}
self.scanControl.start()
代码下载实现依赖
import AVFoundation
库,如果利用此控件,必须导入。
或者自己实现现在存储,修改此库原文件。
- 问题建议 to mail
- mail:[email protected]