longitachi / ZLPhotoBrowser

Wechat-like image picker. Support select photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

配置拍照完直接回调后拍照crash

HAM02020 opened this issue · comments

Issue Description

Description and Steps

image

Info

ZLPhotoBrowser version: e.g. 4.4.3.2
Device: e.g. iPhone Xs Max
Device version: e.g. iOS 16.4.4
Xcode version: e.g. Xcode 14.3

Configuration code of ZLPhotoConfiguration

ZLPhotoConfiguration.default().callbackDirectlyAfterTakingPhoto(true)

我试了下没有crash,你是必现的吗?是的话,在这个doneBtnClick()下面加个return试下

if config.callbackDirectlyAfterTakingPhoto {
doneBtnClick()
}

ZLPhotoPreviewSheet这个文件同理

if config.callbackDirectlyAfterTakingPhoto {
requestSelectPhoto()
}

这个问题在两天前是必现,但是我今天试了一下不会crash了。很迷=、=