Giter Club home page Giter Club logo

Comments (12)

MxABC avatar MxABC commented on May 19, 2024

用我的demo?

from lbxscan.

ad0ma avatar ad0ma commented on May 19, 2024

不是demo,demo效果没问题。用的是LBXScan,以及创建好pch文件并导入
#import "LBXScanViewStyle.h"
#import "LBXScanViewController.h"
#import "SubViewController.h"

from lbxscan.

MxABC avatar MxABC commented on May 19, 2024

调用的代码看下呢

from lbxscan.

ad0ma avatar ad0ma commented on May 19, 2024
  • (IBAction)scanClick:(id)sender {

    //设置扫码区域参数设置

    //创建参数对象
    LBXScanViewStyle *style = [[LBXScanViewStyle alloc]init];

    //矩形区域中心上移,默认中心点为屏幕中心点
    style.centerUpOffset = 44;

    //扫码框周围4个角的类型,设置为外挂式
    style.photoframeAngleStyle = LBXScanViewPhotoframeAngleStyle_Outer;

    //扫码框周围4个角绘制的线条宽度
    style.photoframeLineW = 6;

    //扫码框周围4个角的宽度
    style.photoframeAngleW = 24;

    //扫码框周围4个角的高度
    style.photoframeAngleH = 24;

    //扫码框内 动画类型 --线条上下移动
    style.anmiationStyle = LBXScanViewAnimationStyle_NetGrid;

    //线条上下移动图片
    style.animationImage = [UIImage imageNamed:@"CodeScan.bundle/qrcode_scan_light_green"];

    //SubLBXScanViewController继承自LBXScanViewController
    //添加一些扫码或相册结果处理
    SubViewController *vc = [SubViewController new];
    vc.style = style;

    //vc.isQQSimulator = YES;
    [self presentViewController:vc animated:YES completion:nil];

}

from lbxscan.

MxABC avatar MxABC commented on May 19, 2024

//线条上下移动图片
style.animationImage = [UIImage imageNamed:@"CodeScan.bundle/qrcode_scan_light_green"];
这个图片你检查一下有有没有

CodeScan.bundle/qrcode_scan_light_green 这个图片没有放在 LBXScan里面的

from lbxscan.

ad0ma avatar ad0ma commented on May 19, 2024

我猜到了,谢谢

from lbxscan.

ad0ma avatar ad0ma commented on May 19, 2024

不好意思,打的全局断点。又崩在那里了。

from lbxscan.

ad0ma avatar ad0ma commented on May 19, 2024

报错信息:Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [187.5 nan]'

from lbxscan.

MxABC avatar MxABC commented on May 19, 2024

代码发我邮箱[email protected],我看下呢

from lbxscan.

ad0ma avatar ad0ma commented on May 19, 2024

已发

from lbxscan.

MxABC avatar MxABC commented on May 19, 2024

缺图片啊,把我demo里面CodeScan.bundle copy到你工程里面就可以了

from lbxscan.

ad0ma avatar ad0ma commented on May 19, 2024

在 2015年12月22日,下午8:47,MxABC [email protected] 写道:

缺图片啊,把我demo里面CodeScan.bundle copy到你工程里面就可以了


Reply to this email directly or view it on GitHub https://github.com/MxABC/LBXScan/issues/11#issuecomment-166609045.

。。。这个并没有在readMe看到,不好意思

from lbxscan.

Related Issues (20)

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.