iphone - ALAssetsLibrary 权限消息

标签 iphone ios alassetslibrary

我想为 ALAssetsLibrary 权限消息添加自定义权限消息。 类似于 CLLocationManager 的目的。 我搜索了这个但没有找到任何解决方案。

任何建议都有帮助。

最佳答案

在 Info.plist 文件中,添加键值 NSPhotoLibraryUsageDescriptionPrivacy - 照片库使用说明

来自docs :

NSPhotoLibraryUsageDescription (String - iOS) describes the reason that the app accesses the user’s photo library. When the system prompts the user to allow access, this string is displayed as part of the dialog box.

iOS 6.0 and later

关于iphone - ALAssetsLibrary 权限消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16933042/

相关文章:

iphone - 如何在关闭模型 View 时从呈现的模态视图 Controller 调用 rootviewcontroller 中的方法

ios - 请求完成后无法更新按钮标题

ios - ALAssetLibrary 通知和 enumerateAssetsUsingBlock

ios - 如何知道 block 何时完成枚举 ALAssetsLibrary

iphone - 搜索栏不适用于 ios 设备

android - 为我们现有的客户部署工具到 iPhone 和 Android

iphone - 自定义字体显示不正确?

android - Ios从android studio中的 Storyboard获取UI元素

ios - ALAsset defaultRepresentation fullResolutionImage

ios - 球击球时改变角度