Update & document changes to ASPhotosFrameworkImageRequest handling of PHImageRequestOptionsDeliveryMode

This commit is contained in:
Adlai Holler
2015-09-26 18:41:38 -07:00
parent bf88bd8e19
commit ffa0829fc9
2 changed files with 5 additions and 3 deletions

View File

@@ -528,7 +528,9 @@ typedef void(^ASMultiplexImageLoadCompletionBlock)(UIImage *image, id imageIdent
// Get the best image we can.
PHAsset *imageAsset = [assetFetchResult firstObject];
PHImageRequestOptions *options = [request.options copy];
options.deliveryMode = PHImageRequestOptionsDeliveryModeHighQualityFormat;
if (options.deliveryMode == PHImageRequestOptionsDeliveryModeOpportunistic) {
options.deliveryMode = PHImageRequestOptionsDeliveryModeHighQualityFormat;
}
[[PHImageManager defaultManager] requestImageForAsset:imageAsset
targetSize:request.targetSize