Giter Site home page Giter Site logo

zfscan's Introduction

ZFScan

A simple scan QRCode / BarCode library for iOS - 二维码/条形码 扫描和生成

此框架适用于 >= iOS 8,已支持横竖屏适配,用法简单,喜欢的欢迎star一个,有任何建议或问题可以加QQ群交流:451169423

扫描

用法:

    第一步(step 1)
    将项目里ZFScan整个文件夹拖进新项目
    
    第二步(step 2)
    #import "ZFScanViewController.h"
    
    第三步(step 3)
    ZFScanViewController * vc = [[ZFScanViewController alloc] init];
    vc.returnScanBarCodeValue = ^(NSString * barCodeString){
        //扫描完成后,在此进行后续操作
        NSLog(@"扫描结果======%@",barCodeString);
    };

    [self presentViewController:vc animated:YES completion:nil];

界面效果

生成

用法:

    第一步(step 1)
    将项目里ZFScan整个文件夹拖进新项目
    
    第二步(step 2)
    #import "ZFConst.h"
    
    第三步(step 3)
    UIImageView * imageView = [[UIImageView alloc] initWithFrame:CGRectMake(50, 100, 200, 200)];
    //条形码:kCodePatternForBarCode 二维码:kCodePatternForQRCode
    imageView.image = [UIImage imageForCodeString:@"iOS开发" size:imageView.frame.size.width color:ZFSkyBlue pattern:kCodePatternForQRCode];
    [self.view addSubview:imageView];

本人其他开源框架

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.