Flash in zBar Camera

后端 未结 2 1094
北恋
北恋 2021-01-07 11:41

I am using ZBAR for Qr code scanning. I had implemented ZBar correctly. Now I want to make flash light on or off in Zbar.

On ZBar website I only get information abou

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-07 12:14

    You can on or off flash simply with below code

    ZBarReader?.cameraFlashMode = .off
    

提交回复
热议问题