1

I am using AGImagePickerController which is using AssetLibrary, When images are selected it returns NSArray that contains URL to image.

我的问题是如何使用数组来检索图像?

NSLog 显示返回数组的内容如下

(
"ALAsset - Type:Photo, URLs:assets-library://asset/asset.JPG?id=6D1AAC7F-3580-418E-AE87-8A5C83F76EAD&ext=JPG",
"ALAsset - Type:Photo, URLs:assets-library://asset/asset.JPG?id=1322E0E0-46CD-44DF-A736-FF812694B40C&ext=JPG"

我需要根据“-”针来分解每个数组索引吗?

任何帮助将非常感激

4

1 回答 1

3

刚刚解决了问题。为了其他人,我是这样做的

for (i = 0; i < info.count; i++) {
     ALAssetRepresentation *rep = [[info objectAtIndex: i] defaultRepresentation];
     UIImage * image  = [UIImage imageWithCGImage:[rep fullResolutionImage]];
}

来源:在 AGImagePickerController 中确定选中的照片

于 2013-03-22T07:50:10.747 回答