Determine if the access to photo library is set or not – PHPhotoLibrary

I know this has already been answered, but just to expand on @Tim answer, here is the code you need (iOS 8 and above): PHAuthorizationStatus status = [PHPhotoLibrary authorizationStatus]; if (status == PHAuthorizationStatusAuthorized) { // Access has been granted. } else if (status == PHAuthorizationStatusDenied) { // Access has been denied. } else if (status … Read more