Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

扫描结果有时候显示不了 #2

Open
Leo-Lv opened this issue Dec 2, 2017 · 0 comments
Open

扫描结果有时候显示不了 #2

Leo-Lv opened this issue Dec 2, 2017 · 0 comments

Comments

@Leo-Lv
Copy link

Leo-Lv commented Dec 2, 2017

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也会自动释放,应该不需要刻意去停止了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant