但是当我点击捕获按钮时,我得到了一个错误“无法将UIImage类型的值转换为NSString”。下面是我的操作代码按钮。self.scanDoc.captureImageWithCompletionHander({(imageFilePath) -> Void in
let captureImageView: UIImageView = UIImageView(image: UIImage<em
我正在尝试从图像路径URL中获取文件名,但我得到了一个错误,如“无法在强制中将'URL‘类型的值转换为' NSstring’类型”,是否有人可以帮助我提前转换为NSstring .Thanks let data = image.pngData()! as NSData
data.write(toFile: localPath!print