Swift : No Matter what I do CIDetector is always nil

前端 未结 4 1710
清歌不尽
清歌不尽 2021-01-03 16:52

i don\'t understand why this code doesn\'t work, the detector is always nil with the CIDetectorTypeQRCode constant, everything work with CIDetectorTypeFace. I Supect a bug f

4条回答
  •  误落风尘
    2021-01-03 17:15

    This happened to us as well. iPhone 4s doesn't return a CIDetector of type QRCode. The other types (rectangle, face) work though…

    The same code works as expected on the iPhone 6. Haven't tested on a 5 or 5s yet.

    But two weeks ago it was still working on the 4s, I believe. It was still on iOS 8 back then, I guess.

提交回复
热议问题