longitachi / ZLPhotoBrowser

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

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

Closed HAM02020 closed 10 months ago

HAM02020 commented 10 months ago

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)
longitachi commented 10 months ago

我试了下没有crash,你是必现的吗?是的话,在这个doneBtnClick()下面加个return试下 https://github.com/longitachi/ZLPhotoBrowser/blob/771b6a65da325c98329083e166354e25b24d27bc/Sources/General/ZLThumbnailViewController.swift#L879-L881

ZLPhotoPreviewSheet这个文件同理 https://github.com/longitachi/ZLPhotoBrowser/blob/771b6a65da325c98329083e166354e25b24d27bc/Sources/General/ZLPhotoPreviewSheet.swift#L846-L848

HAM02020 commented 10 months ago

你好!我已收到你的邮件。谢谢!

HAM02020 commented 10 months ago

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