CLImagePickerTool icon indicating copy to clipboard operation
CLImagePickerTool copied to clipboard

如果图片需要在iCloud上下载,添加loading,不生效

Open LCBbest opened this issue 3 years ago • 0 comments

如果图片需要在iCloud上下载。我添加了一个loading转圈圈,但是没有效果。代码如下

imagePickTool.cl_setupImagePickerWith(MaxImagesCount: 1,superVC: self) { (asset,cutImage) in
            CLImagePickerTool.convertAssetArrToOriginImage(assetArr: asset, scale: 1) { (image,assetItem) in
                showHUD()
                let photoView = AlbumViewController()
                photoView.modalPresentationStyle = .fullScreen
                photoView.newImg.image = image
                photoView.des = "确保证件完全放置在方框内,且文字清晰可读,否则将影响识别结果"
                photoView.takePhotoClouseType = {
                   (img:UIImage) -> Void in
                    imgView.showImg(image: UIImage.init(cgImage: img.cgImage!, scale: img.scale, orientation: .left))
                    if type.isEmpty {return;}
                    _self!.serviceUpImg(imgView.getImgBase64(),type)
               }
                PopViewUtil.share.stopLoading()
                hideHUD()
                _self!.present(photoView, animated: true, completion: nil)
            } failedClouse: {
                hideHUD()
                PopViewUtil.share.stopLoading()
            }
         }

LCBbest avatar Mar 29 '21 03:03 LCBbest