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

不支持ios7 #1

Open
PengJiang520 opened this issue Jun 9, 2017 · 6 comments
Open

不支持ios7 #1

PengJiang520 opened this issue Jun 9, 2017 · 6 comments

Comments

@PengJiang520
Copy link

我看了你这边都是用的是AVFoundation 应该是ios7是支持ios7的扫描的吧 难道你没有测试过吗?

@Zirkfied
Copy link
Owner

Zirkfied commented Jun 9, 2017

文档已经写了支持 >= iOS8

@PengJiang520
Copy link
Author

// >= iOS 8
// if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_7_1) {
[_metadataObjectTypes addObjectsFromArray:@[AVMetadataObjectTypeInterleaved2of5Code, AVMetadataObjectTypeITF14Code, AVMetadataObjectTypeDataMatrixCode]];
//}

@PengJiang520
Copy link
Author

我这边把这里的代码給注释掉了 我准备用ios7的手机试试 看有没有效果

@Zirkfied
Copy link
Owner

Zirkfied commented Jun 9, 2017

这段代码只是二维码类型的判断,你即使注释还是不会在iOS 7上适配,我写的部分代码在7上不是正常显示,而且我是在iOS 9的年代写的,就索性不做7的适配了

@PengJiang520
Copy link
Author

这边我已经将代码改了下 是可以在iOS7的手机上跑 需要我将代码拉一下给你吗

@Zirkfied
Copy link
Owner

Zirkfied commented Jul 5, 2017

十分感谢,但不用了。

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

2 participants