Skip to content

使用图片浏览器功能,来回滑动导致小的图片变大(比如第二个图片宽高比较小,第三个铺满全屏,划到第三个或者第四个再回到第二个图片,第二个图片也变成铺满全屏的了) #977

@xiaomuchonglove

Description

@xiaomuchonglove
func showPhotoBrower(index:Int = 0, images: [String]) {
    
    let imageURLs = images.compactMap{$0.url}
    let safeIndex = imageURLs.count > index ? index : 0
    let vc = ZLImagePreviewController(datas:imageURLs,
                                      index: safeIndex,
                                      showSelectBtn: false,
                                      showBottomView: false,
                                      urlType: {_ in .image}) { url, imageView, progress, complete in
        imageView.kf.setImage(with: url)
    }
    ZLPhotoUIConfiguration.resetConfiguration()
    ZLPhotoUIConfiguration.default().showStatusBarInPreviewInterface = true
    vc.modalPresentationStyle = .fullScreen
    present(vc, animated: true)
}  请问是使用方法不对吗

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions