就像在 ALAssetlibrary 中使用
ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
[library assetForURL:[NSURL URLWithString:imagePath]
resultBlock:^(ALAsset *asset)
我能够获取照片以匹配或检查照片是否存在。同样,如何检查照片是否存在并使用 URL 或我们使用获得的任何其他关键信息获取照片
[[PHImageManager defaultManager]
requestImageDataForAsset:asset
options:imageRequestOptions
resultHandler:^(NSData *imageData, NSString *dataUTI,
UIImageOrientation orientation,
NSDictionary *info)
{
NSLog(@"info = %@", info);
}];