gpt4 book ai didi

ios - 无法访问 PHImageManger(swift 3 xcode)

转载 作者:行者123 更新时间:2023-11-29 11:49:13 25 4
gpt4 key购买 nike

我似乎无法在 xcode 中访问 PHImageManager。这是我需要下载的包还是类似的东西?或者这在最新版本的 xcode 中无法访问?

let imgManager = PHImageManager.defaultManager()

这只是给我一个错误“使用未解析的标识符:PHImageManager”

最佳答案

你所要做的就是将它添加到你的类的顶部:

import Photos

关于ios - 无法访问 PHImageManger(swift 3 xcode),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41992097/

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