Skip to content

点击拍照按钮增加block回调 #975

@zFishing

Description

@zFishing

1、设置ZLPhotoConfiguration.default().allowTakePhotoInLibrary = true,
2、调出图片选择界面,带有拍照按钮,
3、拉起拍照界面,
4、设置ZLPhotoConfiguration.default().allowTakePhotoInLibrary = false,
5、点击关闭拍照界面,崩溃在ZLThumbnailViewController的viewWillAppear中的collectionView.reloadItems(at: collectionView.indexPathsForVisibleItems),

其实,我是想请作者能在点击相机按钮时给个代理方法或block,返回bool值来确定是否打开相机。因为在打开图片选择界面时可能需要拍照按钮存在,而在这过程中可能需要不能拉起相机的这种需求。不知道现在有支持这种场景吗?也有可能是我没找到处理这种情况的地方,如果有请指明一下。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions