zirkfied / zfscan Goto Github PK
View Code? Open in Web Editor NEWA simple scan QRCode / BarCode library for iOS - 二维码/条形码 扫描和生成
A simple scan QRCode / BarCode library for iOS - 二维码/条形码 扫描和生成
我看了你这边都是用的是AVFoundation 应该是ios7是支持ios7的扫描的吧 难道你没有测试过吗?
if (metadataObjects.count > 0) {
// [self.session stopRunning];
AVMetadataMachineReadableCodeObject * metadataObject = metadataObjects.firstObject;
if (self.returnScanBarCodeValue) {
self.returnScanBarCodeValue(metadataObject.stringValue);
if (self.navigationController) {
[self.navigationController popViewControllerAnimated:YES];
} else {
[self dismissViewControllerAnimated:YES completion:nil];
}
}
}
在调用block之前把session停止了之后扫描得到的值有时候无法在我这边的UI上刷新,注释掉才行,作者可以看看是不是注释掉会更好,ARC情况下dismiss之后这个VC也会自动释放,应该不需要刻意去停止了
How can I place the return & flash buttons higher up the screen ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.