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

请问ZLEditImageViewController能否接收PHAsset作为初始化参数? #638

Open
aluzi992 opened this issue Aug 3, 2021 · 0 comments

Comments

@aluzi992
Copy link

aluzi992 commented Aug 3, 2021

版本:4.1.7
我想用ZLEditImageViewController编辑相册中的一张照片,但是ZLEditImageViewController只能用UIImage初始化,而我只有PHAsset对象。
如果先用PHImageManager.default().requestImage方法去请求UIImage的话,照片较大的时候会有明显的卡顿现象(点击按钮 ->通过PHImageManager请求UIImage(开始卡了) -> 请求完成后,调用ZLEditImageViewController,此时UI才发生变化)
设置为异步执行也没用,因为从用户点击按钮开始到编辑界面出现就是有一点延迟(图片越大延迟越大)

或者,我发现ZLImagePreviewController可以接收PHAsset对象初始化,但是它却没有编辑照片功能,设置allowEditImage=true并没有效果。而我发现ZLPhotoPreviewController是有编辑功能,但是这个类并没有公开?

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