美文网首页
iOS11 NSPhotoLibraryAddUsageDesc

iOS11 NSPhotoLibraryAddUsageDesc

作者: UnityAsk | 来源:发表于2017-10-09 16:53 被阅读168次

    This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryAddUsageDescription key with a string value explaining to the user how the app uses this data.

    iOS11以前:
    NSPhotoLibraryUsageDescription:访问相册和存储照片到相册(读写),会出现用户授权。

    iOS11之后:
    NSPhotoLibraryUsageDescription:无需添加。默认开启访问相册权限(读),无需用户授权。
    NSPhotoLibraryAddUsageDescription: 添加内容到相册。(写),会出现用户授权。

    相关文章

      网友评论

          本文标题:iOS11 NSPhotoLibraryAddUsageDesc

          本文链接:https://www.haomeiwen.com/subject/oiepyxtx.html