Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LCBbest opened this issue Mar 29, 2021 · 0 comments
Open

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

LCBbest opened this issue Mar 29, 2021 · 0 comments

Comments

@LCBbest
Copy link

LCBbest commented Mar 29, 2021

如果图片需要在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()
            }
         }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant