mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(ios-image-asset): getImageAsync() can retrieve assets stored remotely in iCloud (#5705)
This commit is contained in:
@@ -49,6 +49,7 @@ export class ImageAsset extends common.ImageAsset {
|
||||
|
||||
let imageRequestOptions = PHImageRequestOptions.alloc().init();
|
||||
imageRequestOptions.deliveryMode = PHImageRequestOptionsDeliveryMode.HighQualityFormat;
|
||||
imageRequestOptions.networkAccessAllowed = true;
|
||||
|
||||
PHImageManager.defaultManager().requestImageForAssetTargetSizeContentModeOptionsResultHandler(this.ios, requestedSize, PHImageContentMode.AspectFit, imageRequestOptions,
|
||||
(image, imageResultInfo) => {
|
||||
@@ -70,4 +71,4 @@ export class ImageAsset extends common.ImageAsset {
|
||||
UIGraphicsEndImageContext();
|
||||
return resultImage;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user