ios应用程序在照片中不可见

ios应用程序在照片中不可见,ios,photo,privacy,photo-gallery,Ios,Photo,Privacy,Photo Gallery,我正在开发的应用程序需要访问照片库。我添加了以下代码以检查我是否有权访问它 ALAuthorizationStatus status = [ALAssetsLibrary authorizationStatus]; if (status != ALAuthorizationStatusAuthorized) { NSString *alertMessage = NSLocalizedString(@"PHOTOS_AUTHORIZATION_ALERT_MESSAGE"

我正在开发的应用程序需要访问照片库。我添加了以下代码以检查我是否有权访问它

 ALAuthorizationStatus status = [ALAssetsLibrary authorizationStatus];
    if (status != ALAuthorizationStatusAuthorized) {
        NSString *alertMessage = NSLocalizedString(@"PHOTOS_AUTHORIZATION_ALERT_MESSAGE", nil);

        dispatch_async(dispatch_get_main_queue(), ^{
            [[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"PHOTOS_AUTHORIZATION_ALERT_TITLE", nil)
                                        message:alertMessage
                                       delegate:nil
                              cancelButtonTitle:NSLocalizedString(@"OK", nil)
                              otherButtonTitles:nil] show];
        });
        return NO;
    }
    return YES;

但有时运行iOS 8.4的iPhone 5s和始终运行iOS 9的iPhone 6 Plus不会在隐私照片列表下显示我的应用程序。

可能是因为它已被弃用,而您应该使用Photo.framework?