0

我需要将使用 PHCachingImageManager 保存的资产的文件位置和名称传递给我的 Web 服务器。

我在文档中看不到有关如何以及在何处检索它的任何内容。

我在用

self.imageManager = [[PHCachingImageManager alloc] init];

[self.imageManager startCachingImagesForAssets:assetResult targetSize:targetSize contentMode:PHImageContentModeAspectFit options:imageRequestOptions];

我可以检索图像

[self.imageManager requestImageForAsset:asset
                                     targetSize:mySize
                                    contentMode:PHImageContentModeAspectFill
                                        options:nil
                                  resultHandler:^(UIImage *result, NSDictionary *info) {
                                      cell.imageView.image = result;
                                  }];

但我不知道如何获取实际的缓存详细信息

4

1 回答 1

0

PHCachingImageManager 在幕后工作。现在有专门的方法来访问或列出其内容。PHCachingImageManager 的全部目的是,如果请求的资产已更改,则可以立即响应对 PHImageManager 的请求。

于 2015-08-22T12:05:36.383 回答