Request NSPhotoLibraryAddUsageDescription permission

天大地大妈咪最大 提交于 2019-12-22 08:15:28

问题


I'm trying to save image to Photos app on iOS 10 and 11 versions. Therefore on iOS 11 I need to request NSPhotoLibraryAddUsageDescription permission, on iOS 10 NSPhotoLibraryUsageDescription.

As Apple documentation claims, [PHPhotoLibrary requestAuthorization:] obtains permission only for NSPhotoLibraryUsageDescription key.

If you have both keys in Info.plist file and select "Add photos only" to Photos permissions in your app, [PHPhotoLibrary authorizationStatus] returns PHAuthorizationStatusDenied.

Does anybody know how to deal with these permissions?

来源:https://stackoverflow.com/questions/46566972/request-nsphotolibraryaddusagedescription-permission

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!