Git Product home page Git Product logo

qdscaning's Introduction

QDScaning系统二维码扫描

开发者进行扫码编程时,一般会借助第三方库,常用的是ZBarSDK。IOS7之后,系统的AVMetadataObject类中,为我们提供了解析二维码的接口。经过测试,使用原生API扫描和处理的效率非常高,远远高于第三方库。

重要属性

AVCaptureDevice * captureDevice;   // 获取摄像设备
AVCaptureDeviceInput * captureDeviceInput; // 创建输入信息
AVCaptureMetadataOutput * captureMetaDataOutput; // 创建输出信息
AVCaptureSession * captureSession; // 信息输入输出的桥梁
AVCaptureVideoPreviewLayer * capturwVideoPreviewLayer; // layer视图层

功能

1.适配iPhone设备

2.timer动画,自定义了扫描动画(还未完成)

3.全屏取景,并且设置扫描热点在框框内

问题

UIWebView 使用中遇到的问题(NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802))
在iOS9后引入了新特性App Transport Security (ATS)。详情:App Transport Security (ATS)
新特性要求App内访问的网络必须使用HTTPS协议。如果现在公司的项目使用的是HTTP协议,使用私有加密方式保证数据安全HTTP协议或是使用HTTPS协议传输,解决办法:
在Info.plist中添加
  • 参数

App Transport Security Settings Allow Arbitrary Loads ```

  • 意见反馈

Contact This is according to the relevant information on the apple official documentation and making do some summary, if you found inaccurate or have new Suggestions can contact me WeChat: cz192230531, or to carry my PR in the making, welcome to contact. ```

qdscaning's People

Contributors

jane-blog avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.