iphone使用ALAsset使用URL检索图像

rak*_*ndu 6 iphone upload image alasset

我想知道如何使用URL检索图像.我正在使用ALAsset.我从iPhone中ALAsset检索到的URL中的以下链接显示图像中跟踪了答案(带刻度标记的答案) .如何检索图像并上传?

Mik*_*ike 16

你有没有设法获得ALAsset?一旦你这样做,获得图像很容易.要获取缩略图,资产有一个方法...缩略图.

UIImage *img = [UIImage imageWithCGImage:[myAsset thumbnail]];

要获得完整的Res图像,您必须通过默认表示.

UIImage *img = [UIImage imageWithCGImage:[[myAsset defaultRepresentation] fullResolutionImage]

希望这可以帮助