I want to save the image to Photos without showing "Select Photos ...", and choose a save method by specifying PHAccessLevelAddOnly. But I still see "Select Photos ..." in the selection options. Why might this be happening?
Xcode Version 12.0 beta 6 (12A8189n)
Code Block PHAuthorizationStatus prevStatus = [PHPhotoLibrary authorizationStatus]; if (@available(iOS 14, *)) { prevStatus = [PHPhotoLibrary authorizationStatusForAccessLevel:PHAccessLevelAddOnly]; if (prevStatus == PHAuthorizationStatusNotDetermined) { __weak typeof(self) weakSelf = self; [PHPhotoLibrary requestAuthorizationForAccessLevel:(PHAccessLevelAddOnly) handler:^(PHAuthorizationStatus status) { if (status == PHAuthorizationStatusAuthorized) { dispatch_async(dispatch_get_main_queue(), ^{ ... }); } }]; return; } }
Xcode Version 12.0 beta 6 (12A8189n)