摘要:
代码如下: import UIKit import AVFoundation import WebKit class ViewController: UIViewController,AVCaptureMetadataOutputObjectsDelegate { var session:AVCap 阅读全文
摘要:
//导入必要的库 import AVFoundation //创建Video设备 guard let device = AVCaptureDevice.default(for: AVMediaType.video) else { return } //判断设备是否有手电筒 且 是否可以使用 if d 阅读全文