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

关于预览ZLImagePreviewController的一个问题~ #587

Closed
SAO-Asuna opened this issue Feb 22, 2021 · 2 comments
Closed

关于预览ZLImagePreviewController的一个问题~ #587

SAO-Asuna opened this issue Feb 22, 2021 · 2 comments

Comments

@SAO-Asuna
Copy link

image
如上图,如果我在预览初始化ZLImagePreviewController的时候
let previewVC = ZLImagePreviewController(datas: images, index: indexPath.row, showSelectBtn: false)
设置showSelectBtn为false,则这里会隐藏掉上面的选择按钮和下面的bottomView,但是在我点击图片沉浸式预览图片,再点击图片返回时,bottomView就会再次展示,猜测是在tapPreviewCell【退出预览方法里】
image
设置回了fasle展示,可以帮忙修复一下吗?建议可以在选择showSelectBtn为false的时候只隐藏selectBtn不隐藏bottomView

@longitachi
Copy link
Owner

感谢反馈,这两天发版会更新下这个

@longitachi
Copy link
Owner

更新4.1.3版本即可

/// - Parameters:
/// - datas: Must be one of PHAsset, UIImage and URL, will filter ohers in init function.
/// - showBottomView: If showSelectBtn is true, showBottomView is always true.
/// - index: Index for first display.
/// - urlType: Tell me the url is image or video.
/// - urlImageLoader: Called when cell will display, cell will layout after callback when image load finish. The first block is progress callback, second is load finish callback.
@objc public init(datas: [Any], index: Int = 0, showSelectBtn: Bool = true, showBottomView: Bool = true, urlType: ( (URL) -> ZLURLType )? = nil, urlImageLoader: ( (URL, UIImageView, @escaping ( (CGFloat) -> Void ), @escaping ( () -> Void )) -> Void )? = nil) {

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

2 participants