I used elcimagepickercontroller
in my app, when want to choose images from Gallery images not appear but when select it it appear kindly check the attachment images.
问问题
304 次
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 回答