Giter Club home page Giter Club logo

zzyqrcode's Introduction

ZZYQRCode

Using the system API (AVFoundation) for packaging, including the UI interface and QR code, barcode scanning, generating and other operations

Swift Version: ZZYQRCodeSwift

HOW to install

platform :ios, '8.0'
use_frameworks!
pod 'ZZYQRCode', '~> 1.1.0'

How to use

  1. Create sessionManager
- (instancetype)initWithAVCaptureQuality:(AVCaptureQuality)quality
                           AVCaptureType:(AVCaptureType)type
                                scanRect:(CGRect)scanRect
                            successBlock:(SuccessBlock)success;
  1. Show view
- (void)showPreviewLayerInView:(UIView *)view;

Others features

  1. Scan sound effects
@property(assign, nonatomic) BOOL isPlaySound;

@property(copy, nonatomic) NSString *soundName;
  1. Torch
- (void)turnTorch:(BOOL)state;
  1. Scan the QR code in the album
- (void)scanPhotoWith:(UIImage *)image successBlock:(SuccessBlock)success;
  1. Check authorization status
+ (void)checkAuthorizationStatusForCameraWithGrantBlock:(void(^)())grant
                                            DeniedBlock:(void(^)())denied;
  1. Create QR code
UIImage *image = [UIImage createQRCodeWithSize:200 dataString:@"hello"];
  1. Create customize QR code
UIImage *icon = [UIImage imageNamed:@"bigMax"];
UIImage *image = [UIImage createQRCodeWithSize:200
                                    dataString:@"hello"
                               QRCodeImageType:circularImage
                                     iconImage:icon
                                 iconImageSize:40];

Pay attention

Because of iOS10 authorization change,you need to add code in your info.plist

<key>NSCameraUsageDescription</key>
<string></string>
<key>NSPhotoLibraryUsageDescription</key>
<string></string>

Page show

zzyqrcode's People

Stargazers

 avatar nest avatar  avatar  avatar  avatar  avatar louis.chu avatar  avatar Cameron avatar jyouli avatar  avatar SuperBanLi avatar  avatar yangji avatar  avatar  avatar xujianrj avatar Bamuleseyo Gideon avatar Okar Ou avatar Bora avatar  avatar caodongdong avatar  avatar 小虫儿 avatar Oops avatar Arvin Li avatar tinytitan avatar  avatar  avatar soulnix avatar  avatar Theo Hao avatar  avatar  avatar  avatar HuberyYang avatar  DevEasy avatar  avatar  avatar  avatar NinJa avatar  avatar renmoqiqi avatar kkkkkkkk avatar  avatar  avatar 鱼先生 avatar JellyFoo avatar Leroyli avatar Li-Yudong avatar MrJackL avatar olive avatar 一个正直的小龙猫 avatar emoGH avatar Tony Chan avatar BruceZhang avatar Xie Wu avatar 何新 avatar xmcheng avatar  avatar Sky JIA avatar  avatar Ian Gao avatar icyleaf avatar William Lo avatar Burak Sormageç avatar 研磨时光 avatar  avatar  avatar KennethPCF avatar 董宝君 avatar Emiaostein avatar  avatar Junhyuk Lee avatar Moonlight avatar Robin avatar Andrew Feng avatar Junqiu Li avatar litt1e-p avatar Tempura avatar Jyun Hong Su avatar  avatar  avatar  avatar 晋先森 avatar arden avatar  avatar 码农甲乙丙 avatar Kang avatar Carabineiro avatar Pierre Rougeot avatar jprothwell avatar lizhen avatar  avatar Yuzhou Gao avatar CodeDavy avatar lzz11 avatar  avatar Master's Brother avatar  avatar

Watchers

 avatar Carabineiro avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zzyqrcode's Issues

the crash report

run in ios9 or 10 hasn't this problem: [CIContext initWithOptions:]: unrecognized selector sent to instance 0x170400960 in xcode8

you can solution this problem like this: solution

手机发烫!

开了一会扫描后,手机就开始发烫,而且是非常烫的那种,用的是越狱的4S,6没有越狱,所以没有测试!!!!

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.