且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

确定是否设置了对照片库的访问权限 - PHPhotoLibrary

更新时间:2023-02-22 12:03:52

检查 + [PHPhotoLibrary authorizationStatus] - 如果没有设置,它将返回 PHAuthorizationStatusNotDetermined 。 (然后,您可以在同一个类上使用 + requestAuthorization:请求访问。)

Check +[PHPhotoLibrary authorizationStatus] – if not set, it will return PHAuthorizationStatusNotDetermined. (You can then request access using +requestAuthorization: on the same class.)