Comments (12)
用我的demo?
from lbxscan.
不是demo,demo效果没问题。用的是LBXScan,以及创建好pch文件并导入
#import "LBXScanViewStyle.h"
#import "LBXScanViewController.h"
#import "SubViewController.h"
from lbxscan.
调用的代码看下呢
from lbxscan.
-
(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.
//线条上下移动图片
style.animationImage = [UIImage imageNamed:@"CodeScan.bundle/qrcode_scan_light_green"];
这个图片你检查一下有有没有
CodeScan.bundle/qrcode_scan_light_green 这个图片没有放在 LBXScan里面的
from lbxscan.
我猜到了,谢谢
from lbxscan.
不好意思,打的全局断点。又崩在那里了。
from lbxscan.
报错信息:Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [187.5 nan]'
from lbxscan.
代码发我邮箱[email protected],我看下呢
from lbxscan.
已发
from lbxscan.
缺图片啊,把我demo里面CodeScan.bundle copy到你工程里面就可以了
from lbxscan.
在 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)
- 好乱啊
- Native怎么设置同时支持识别二维码和条形码 HOT 1
- push到扫描二维码页面会闪一下
- AVCaptureStillImageOutput is deprecated, Please solved it, thanks.
- 第一次见一个库越来越难集成的 HOT 3
- Crashing app when i try to use scan
- 启动相机的时候会有一个白色的是啥?然后相机启动后还会抖动一下,请问这是为什么呢?要怎么改呢?
- 进入扫码界面会先白屏抖动 HOT 1
- 为什么我进入扫码界面 启动相机后是空白的
- 手动引入
- qq扫码界面,缩放中心默认左上角 HOT 1
- 请问能否继续封装?
- 条码扫码竖着扫不起没反应
- iPhone11 Pro,iPhone12机型出现扫码区域内有一条很浅的横线
- 扫一扫偶现绿色背景是怎么回事? HOT 1
- 3.2K的star是在淘宝上买的吗?😂 HOT 1
- ZXingObjc使用的不是最新版本,存在崩溃问题,建议更新下 HOT 2
- 部分条形码无法识别问题,可以试下这个(pod 'LYQRCodeGenerateAndScan') https://github.com/zhuzi55/LYQRCodeGenerateAndScan
- 获取二维码的图像区域 getConcreteCodeRectFromImage HOT 1
- 使用时有崩溃,captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lbxscan.