1

I used elcimagepickercontrollerin my app, when want to choose images from Gallery images not appear but when select it it appear kindly check the attachment images.从图库中选择

没有图片 但是当点击 如何出现我的画廊照片时。

4

1 回答 1

0

我修复了它从 ELCAssetCell.m 更改 conde

在 setAssets 函数中:

if (i < [_imageViewArray count]) {
        UIImageView *imageView = [_imageViewArray objectAtIndex:i];
        imageView.image = [UIImage imageWithCGImage:asset.asset.thumbnail];
    }

if (i < [_imageViewArray count]) {
        UIImageView *imageView = [_imageViewArray objectAtIndex:i];
        //changed code:
        CGImageRef r1 = asset.asset.thumbnail;
        CGImageRef r2 = asset.asset.aspectRatioThumbnail;
        imageView.image = [UIImage imageWithCGImage:r1 == nil?r2:r1];
    }

它会一直工作到修复为止,请始终牢记您已更改该行,因此请检查更新。

希望有帮助

于 2016-11-08T18:42:16.277 回答