gpt4 book ai didi

ios - 在 Swift 中使用 DKImagePickerController 进行多图像选择

转载 作者:行者123 更新时间:2023-11-30 13:28:45 26 4
gpt4 key购买 nike

有人使用以下链接中的 DKImagePickerController 来让您的应用程序支持选择多个图像吗?

https://github.com/zhangao0086/DKImagePickerController/tree/2.4.3

我不想使用 pod,所以我只是将 DKCamera 和 DKImagePickerController 复制到我的应用程序项目中,因为我也想让它在 iOS 7.0 版本上运行,但是当我输入这行代码时:

let pickerController = DKImagePickerController()

它给出了错误:

Use of unresolved identifier 'DKImagePickerController'.

有人可以帮我解决这个问题吗?

最佳答案

首先,您需要安装DKImagePickerController通过cocoapods
然后要使用这个库,首先像这样导入

导入DKImagePickerController

现在您可以使用这个库而不会出现此错误

关于ios - 在 Swift 中使用 DKImagePickerController 进行多图像选择,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36825439/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com