问题
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