gpt4 book ai didi

ios - 应用程序不要求照片库使用权限

转载 作者:行者123 更新时间:2023-11-28 11:35:05 25 4
gpt4 key购买 nike

我添加了Privacy - Photo Library Additions Usage Description & Privacy - Photo Library Usage Description

enter image description here

但是没有一个 key 需要用户许可才能访问照片库。

我已经在模拟器和真实设备中进行了测试。

我什至尝试一次添加一个键。仅喜欢隐私 - 照片库添加使用说明隐私 - 照片库使用说明。还尝试将两个键加在一起。

但上述情况都不适合我。

我还添加了 Privacy - Camera Usage Description 并且工作正常。但是照片库的使用并不是在征求用户的许可

感谢任何帮助!

最佳答案

Note from Apple:

When using the UIImagePickerController to bring up the user's photo library, your > app doesn't need to request permission explicitly.

在 iOS 10 之后,如果您的应用正在使用 PHAsset、PHPhotoLibrary 和 PHImageManager,那么您需要在应用的 Info.plist 文件中包含 NSPhotoLibraryUsageDescription

详细信息可在此处获得:apple-ref-documentation

关于ios - 应用程序不要求照片库使用权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55625351/

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